[Geocoding] [OpenStreetMap] #4766: JSON numeric values
OpenStreetMap
trac at noreply.openstreetmap.org
Sat Feb 2 08:38:03 GMT 2013
#4766: JSON numeric values
-------------------------+-------------------------
Reporter: porjo | Owner: geocoding@…
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: nominatim | Version:
Keywords: |
-------------------------+-------------------------
Nominatim API returns most integer/float JSON values as strings (i.e.
surrounded by quotes)
{{{
"boundingbox": [
"51.2867584228516",
"51.6918754577637",
"-0.510375142097473",
"0.334015518426895"
],
}}}
which makes it necessary to convert with parseInt/parseFloat on the client
side.
It would be better if these were returned without quotes e.g
{{{
"boundingbox": [
51.2867584228516,
51.6918754577637,
-0.510375142097473,
0.334015518426895
],
}}}
--
Ticket URL: <https://trac.openstreetmap.org/ticket/4766>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
More information about the Geocoding
mailing list