Opened 4 years ago

#4766 new enhancement

JSON numeric values

Reported by: porjo Owned by: geocoding@…
Priority: minor Milestone:
Component: nominatim Version:
Keywords: Cc:

Description

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
        ],

Change History (0)

Note: See TracTickets for help on using tickets.