ushahidi / platform

Ushahidi Platform API version 3+
http://ushahidi.com
Other
678 stars 506 forks source link

Search location in Posts gives unstable responses #1835

Closed willdoran closed 4 months ago

willdoran commented 7 years ago

Expected behaviour

Part of this inconsistency may be to do with there being no spinner saying that a search is happening. But the results are still off.

screen shot 2017-06-28 at 15 25 45 screen shot 2017-06-28 at 15 26 08 screen shot 2017-06-28 at 15 26 29 screen shot 2017-06-28 at 15 26 41 screen shot 2017-06-28 at 15 26 56

Aha! Link: https://ushahiditeam.aha.io/features/PROD-590

Erioldoesdesign commented 5 years ago

Flagging that the folks working on https://keralarescuemap.ushahidi.io/views/map are experiencing trouble with this issue now. Here's some info on what they are experiencing:

For instance, this is what I get when I search for NIT Calicut which is a major landmark..... The suggestions are completely irrelevant.

image

These are the suggestions shown for Kochi....As you can see, I have places suggested from Japan

image

They suggest the solution: Suggestions based on an IP lookup should do the trick, if possible

kromcuich commented 4 years ago

Confirming the bug present in a public (free) deployment. Address look up is not working in Montreal https://r2r.ushahidi.io

'use my location' is not accurate for obvious reasons

any suggestions?

willdoran commented 4 years ago

I wrote this ticket several years ago. At the time, the design was intended to support Postal Codes as well as places, names, addresses and lat/long.

The Nominatim free service doesn't support all postal codes so it might be worth closing this as no longer relevant.

@kromcuich what address format were you searching for and not able to get results for?

willdoran commented 4 years ago

Turns out OSM just doesn't support Canada as a place that has postal codes :D

https://github.com/osm-search/Nominatim/issues/1452

rowasc commented 4 years ago

Bumping as Community Task in case someone has the bandwith. It may be that we need to add new providers to solve for this? It seems to be a nominatim issue, so I think a decent course of action may be to have other providers to fill in gaps. This is needed for several reasons in any case, not all providers have all the data.

https://github.com/ushahidi/platform/issues/3927 David started this issue a couple weeks back to explore using the mapbox geocoder, so tagging as related. Thanks @willdoran and @kromcuich