Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Enable location search #6

Open
radumas opened this issue Sep 21, 2017 · 1 comment
Open

Enable location search #6

radumas opened this issue Sep 21, 2017 · 1 comment

Comments

@radumas
Copy link
Member

radumas commented Sep 21, 2017

So a user can search for a particular location textually

@rcyyu
Copy link
Contributor

rcyyu commented Sep 27, 2017

Not exactly sure how specific of a particular location is needed but there are possible ways to enable location search for users.

Using Google Search API

This is the easiest option as it allows for quick geolocation exactly like how Google maps works. The only issue are that it requires an API key and it also wont allow users to search for specific street segments (i.e. using geo_id).

Using Our Own Geolocated Streets

This doesn't require an API key and allows users to search for specific street segments. The issue is that we would also need to get the centroid of each street segment and add the coordinate of the centroid as a field of the street segment in an API. This can be done using the st_centroid operation in pgsql and hosting the table using an API.

Both of these would be using the Leaflet Search plugin for Leaflet Maps. It is a widely used plugin and is has plenty of documentation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants