NERC-CEH / fit-count-app

Fit Count App & Website
Apache License 2.0
0 stars 0 forks source link

Placename search on map page? #49

Closed DavidRoy closed 3 years ago

DavidRoy commented 3 years ago

It would help to have a placename search on the map to help locate sample location

kitenetter commented 3 years ago

I agree that a placename and/or postcode search would be useful if possible.

@kazlauskis I think you said that we could adjust the zoom level at which the location becomes accepted. If so, I think we should make the threshold one level lower (or is it higher?) than it currently is - i.e. so you don't have to zoom in quite so far. Hopefully if we allow one more level we'll still get a reasonably precise location (the current level of zoom-in seems to produce a very precise location, more precise than we need).

kazlauskis commented 3 years ago

Yes, we could add this in.

I can see that iRecord forms use OSM geocoding, with its limitations it isn't really good for apps, do you have some other existing geocoding service we could use for this?

We're currently using Mapbox mapping tiles in the apps, it also has a geocoding service with 100K/month requests being free.

DavidRoy commented 3 years ago

Mapbox seems a good option. I doubt we'd get high usage as most people will rely on GPS location?

kazlauskis commented 3 years ago

Thanks, we'll start the work on the placename search then.

kazlauskis commented 3 years ago

When the user selects a suggested placename I assume you don't want to auto-select the centroid location of the place only zoom-in to the selected area, is that correct?

kitenetter commented 3 years ago

Correct.

kazlauskis commented 3 years ago

I've added the placename search, it shows the search results based on your country (and precise location) and tapping a result zooms to the place on the map.