Opened 9 years ago

Closed 6 years ago

#2775 closed enhancement (fixed)

JSON contains class property which is reserved in javascript

Reported by: o.boudet@… Owned by: geocoding@…
Priority: major Milestone:
Component: nominatim Version:
Keywords: Cc: o.boudet@…

Description

JSON requests returns data with "class" property (highway, railway, etc) but the word "class" is reserved in javascript. As a consequence, a Javascript object built by jQuery (and probably other frameworks) with Nominatim data is not correct in IE and could not be executed (works great in Firefox).

I suppose it will be difficult to change this if many people use Nominatim in many apps but I wanted to say.

Change History (2)

comment:1 Changed 7 years ago by Tom Hughes

Owner: changed from openstreetmap@… to geocoding@…

comment:2 Changed 6 years ago by Sarah Hoffmann

Resolution: fixed
Status: newclosed

There is now a format type jsonv2 that fixes this issue.

Note: See TracTickets for help on using tickets.