NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I just used OSM to search for the lat long: 37.724917, -121.541556

However, the full address it returned didn't have the city (Tracy) in it.

How can I get the city?

asked 10 Apr '15, 04:57

Franco%20L's gravatar image

Franco L
16112
accept rate: 0%

edited 25 Apr '15, 12:36

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

convenience link: https://www.openstreetmap.org/search?query=37.724917%2C+-121.541556 (I assume you mean this search by "used OSM to search")

(25 Apr '15, 12:37) aseerel4c26 ♦

I assume this is because Tracy is mapped as a node To fix this it has to be mapped as a boundary relation.

Similar questions have been asked in the past so you can search here, or maybe someone else will do it for you. (I'm too lazy to do it)

permanent link

answered 10 Apr '15, 06:28

escada's gravatar image

escada
19.0k16166302
accept rate: 21%

2

Although you should leave the node in place and include it in the boundary relation. It is helpful when someone wants to just navigate to the city if the node is place in the town centre.

(10 Apr '15, 14:25) trigpoint
1

@Franco L: for positions closer to the city centre Tracy is returned (you can test with "Where am I?"). I guess that position is too far away from the city centre to guess that it also belongs to the city. We often have the opposite problem, that Nominatim searches for the closest town, finds a node and uses it, although a particular place does not belong to this town. E.g. reverse-geocoding-picks-up-a-distant-housing-estate . Update: not really... I found the boundary relation …

(25 Apr '15, 12:45) aseerel4c26 ♦

See https://www.openstreetmap.org/relation/112385?mlat=37.724917&mlon=-121.541556 your position (marker) is outside the boundary of Tracy.

permanent link

answered 25 Apr '15, 12:52

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

1

note: I have only added the node to the boundary relation and set outer roles and fixed the wikipedia tags – it was existing before.

(25 Apr '15, 13:02) aseerel4c26 ♦

Thanks for the help!

(25 Apr '15, 18:40) Franco L
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×107
×75
×2

question asked: 10 Apr '15, 04:57

question was seen: 3,535 times

last updated: 25 Apr '15, 18:40

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum