Hi All,

I am using openstreetmap api for fetching latitude and longitude values by providing address to the api. I am using below format of API:

http://nominatim.openstreetmap.org/search?street=229 Dr Brasilio Machado&city=São Paulo&country=Brasil&postalcode=01230-010&format=json&polygon=1&addressdetails=1

I am getting values for most of the addresses all around the world. But For some addresses like one mentioned in the link i dont get lat/lon values.

Initially i was using the below format of Api.

http://nominatim.openstreetmap.org/search?q=114, r. Voluntários da Pátria, Rio de Janeiro (Capital),cel 6929. 8703&format=json

But it was also have issue with some of the addresses so i switch to this format of API.

Can someone please help which is the best way to get lat/lon values for all addresses using openstreetmap?

Thanks

Umesh Tayade

asked 31 Oct '13, 09:31

Umesh%20Tayade's gravatar image

Umesh Tayade
11112
accept rate: 0%

edited 31 Oct '13, 11:49

aseerel4c26's gravatar image

aseerel4c26 ♦
32.3k16241554


You can't get something out of the database that wasn't in there to start with. Unfortunately, the maps for anything except the core of the larger metropolitan regions in Brazil are very poor, and the thing that is lacking the most are the street names. It has shown some improvement in the last year, but still very poor. I contribute data solely inside Brazil (mostly São Paulo) and I find that most small cities outside São Paulo/Rio de Janeiro have nothing but the street traced, if even this.

For the street numbering, the situation cannot be described as anything but "terrible". For ZIP/Postal Codes, the same.

Some tips:

  • Leave out the postal code in your queries. Based on your example query, I found that it is not found and restricts even more the already poor results.
  • Try experimenting with removing or using the full name qualifier. Ex.: Rua/R. for streets, Avenida/Av., for Avenues, and so on
  • Try experimenting with removing or using the full title qualifier. Ex.: Doutor/Dr. for "Doctor", Pres./Presidente for "President", and so on.
  • It doesn't matter if the street numbers are before or after the address, but since brazilian addresses are mostly written in the brazilian way (in the database), it may help to query them in this way.
permanent link

answered 31 Oct '13, 11:42

MCPicoli's gravatar image

MCPicoli
2.1k123046
accept rate: 24%

1

Slightly OT: thanks to MCPicoli to working on adding data in Brazil. I think it it s important to realize that building a geodatabase/map of the whole world takes time and that we are doing this a lot faster than our competitors did, even our flagship regions took years to get to the state they are now in. As MCPicoli points out, in the days of widely available areial imagery getting road geometry is relatively cheap, but doesn't replace the need to have and build local communities that add the meta data (street names etc) that make the geometry data so much more useful.

(01 Nov '13, 08:02) SimonPoole ♦
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:

×636
×125

question asked: 31 Oct '13, 09:31

question was seen: 6,701 times

last updated: 01 Nov '13, 08:02

powered by OSQA