AtlisInc / Nominatim-API

Java library for reverse geocoding for Nominatim
http://nominatim.openstreetmap.org
GNU Lesser General Public License v3.0
14 stars 3 forks source link

Bug in parsing the longitude and latitude #8

Open especialEspecially opened 4 years ago

especialEspecially commented 4 years ago

Hello, I am using your api, but it has a bug in it. In java, if a double value has the format "0.00043455", it is shown with the scientific notation. I am trying to get the city name for the latitude = 51.6667034 and longitude = 0.0009485. But I get an exception, because you use String.valueOf() in your code in NominatimAPI which makes 9.485E-4 and when this format is used as the address of the nominatim website, the correct information cannot be extracted. Could you please correct it?

michaelassraf commented 4 years ago

Hi @especialEspecially,

Can you please create a pull request?

Michael

especialEspecially commented 4 years ago

@michaelassraf The pull request is not active. It seems that there has been no changes.

michaelassraf commented 4 years ago

Interesting, so it's already fixed in master?

especialEspecially commented 4 years ago

No, unfortunately, it doesn't seem to be changed.

especialEspecially commented 4 years ago

@michaelassraf Did you change anything? I still see no updates.

tanishcb commented 1 year ago

Can anyone tell the url to call the api in the localhost ?