Opened 4 years ago

Last modified 3 years ago

#4825 new enhancement

A location in the display_name is not in the address.

Reported by: wolfkang@… Owned by: geocoding@…
Priority: trivial Milestone:
Component: nominatim Version:
Keywords: Cc:

Description

Hi?

When I browse this url, the "Cheonan" in the display_name is not one of the fields of the address.

http://nominatim.openstreetmap.org/reverse?osm_type=R&format=json&lat=36.791966&lon=127.171726

{
"place_id": "51941487",
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright",
"osm_type": "way",
"osm_id": "54226105",
"lat": "36.7925904",
"lon": "127.1697563",
"display_name": "Gyeongbu Expressway North, Guseongdong, Dongnam-gu, Cheonan, Chungcheongnam-do, South Korea",
"address": {
"road": "Gyeongbu Expressway North",
"town": "Guseongdong",
"county": "Dongnam-gu",
"state": "Chungcheongnam-do",
"country": "South Korea",
"country_code": "kr"
}
}

I think it'd better that the "Cheonan" would be included in the address.
Please check it out.
Thanks.

Change History (2)

comment:1 Changed 3 years ago by pnorman

  • Component changed from api to nominatim
  • Owner changed from rails-dev@… to geocoding@…

comment:2 Changed 3 years ago by lonvia

That is a little tricky because Nominatim currently doesn't distinguish between admin level 6 and 7. It maps them both to the 'county' part of the address. That is the right behavior for some countries but wrong in the case of South Korea. We'd probably need something like country-specific handling of admin levels to output the address fully.

Note: See TracTickets for help on using tickets.