Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

JSON contains class property which is reserved in javascript #2775

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: o.boudet[at]gmail.com
[Submitted to the original trac issue database at 4.57pm, Friday, 5th March 2010]

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.

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 7.38pm, Thursday, 20th June 2013]

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant