API or database to achieve latitude and longitude


I need to know the latitude and longitude of a location looking for CEP or any other option that I can provide, it can not be Google maps .

Does anyone know any API or base de dados ?

asked by anonymous 29.09.2017 / 18:46

2 answers


I figured out how to do it, there is API OSRM and Nominatim API, they do the same Google maps, but and Open Source. I've set up a docker for it and it's working perfectly.


02.10.2017 / 16:12

Geolocation by zip code? It does not make much sense, geolocation is the name itself, a location, a zip code, has an area, not a point, latitude and longitude will give you a point.

By the CEP, you will need a database, here you find the bases to do, the whatever you want.

You can also use javascript's .geolocation, but in that case, the zip code does not matter at all, here you find the translated documentation, this functionality is relatively simple for simple and complex purposes for complex purposes, it depends on the user's authorization, and you can infringe on legal means without even realizing it, so it is good to have attention.     

29.09.2017 / 19:35