django-osm-field icon indicating copy to clipboard operation
django-osm-field copied to clipboard

Decimal degrees coordinates ingored, showing only the nearest object

Open int-ua opened this issue 10 years ago • 3 comments

To reproduce: paste any decimal degrees coordinates under which there are no objects in OSM to the location field. 49.415248, 26.957707 for example.

Expected result: pointer put directly on these coordinates.

Actual result: pointer put on the nearest object (road, town) that can be several kilometres away.

I think it should be addressed in the django-osm-field because Nominatim's function is just different.

And _lat, _lon fields changes are ignored on the map in my case, is that a bug?

int-ua avatar Apr 23 '15 13:04 int-ua

@netAction Do you have any input on this?

MarkusH avatar Apr 24 '15 18:04 MarkusH

After deleting the display:none style from location_lat and location_lon fields the problem is less serious. Now it's just that map is not updated after coordinates are pasted. But it would be still much better if in case of raw coordinates input Nominatim wasn't touched at all. It looks more logical: if user pasted or typed in numbers he/she obviously wanted the pointer put on that place, not to search some nearest object.

int-ua avatar Apr 24 '15 21:04 int-ua

I will try to take a look into this in a few days and fix it - please ping me if I forget.

blag avatar Jun 13 '16 21:06 blag