Opened 9 years ago

Closed 7 years ago

#2898 closed defect (fixed)

json for Nominatim is wrong

Reported by: roeea2@… Owned by: roeea2@…
Priority: critical Milestone:
Component: nominatim Version:
Keywords: Cc:

Description

When <road> contain only number it passes as an integer. e.g: http://nominatim.openstreetmap.org/reverse?format=json&lat=31.988611&lon=34.9125&zoom=18&addressdetails=1 <road>453</road> should come as a string in JSON mode as everything. JSON should be only string all the time.

Attachments (1)

lib.php.diff (597 bytes) - added by Andrew O. Shadoura 9 years ago.
A patch to fix the issue

Download all attachments as: .zip

Change History (3)

comment:1 Changed 9 years ago by roeea2@…

Owner: changed from openstreetmap@… to roeea2@…
Status: newassigned

Changed 9 years ago by Andrew O. Shadoura

Attachment: lib.php.diff added

A patch to fix the issue

comment:2 Changed 7 years ago by Sarah Hoffmann

Resolution: fixed
Status: assignedclosed

Nominatim now uses php's function to create properly formatted json strings.

Note: See TracTickets for help on using tickets.