Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#5410 closed defect (invalid)

Egypt polygon_geojson contains point from Greece

Reported by: a-da Owned by: geocoding@…
Priority: major Milestone:
Component: nominatim Version:
Keywords: polygon_geojson Cc:

Description

Get polygon_geojson for Egypt country

$ curl "nominatim.openstreetmap.org/search?q=egypt&format=json&limit=1&polygon_geojson=1"| fgrep -o "],[37.1153517,22.0651165]"
    
],[37.1153517,22.0651165]

Get suspected point and check its position

$ curl -s "http://nominatim.openstreetmap.org/reverse?lat=37.1153517&lon=22.0651165" | grep -o "<country_code>......."

<country_code>gr</cou

As we can see this is too far from Egypt and it is in Greece

Do I do something wrong or this is a bug ?

Change History (2)

comment:1 Changed 3 years ago by Sarah Hoffmann

Resolution: invalid
Status: newclosed

geojson has coordinates in the format [x, y] which corresponds to [lon, lat]. So the point you are looking for is:

http://nominatim.openstreetmap.org/reverse.php?lat=22.0651165&lon=37.1153517

which gives Sudan as country, which is ok for a point on the border between Egypt and Sudan.

comment:2 Changed 3 years ago by a-da

thanks

Note: See TracTickets for help on using tickets.