This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Request to add a tag to amenity removes all data about the amenity (using Amenity Editor)

0

I tried to edit amenity information (add own tag) with Amenity Editor and it worked. Theh i tried to add own tag to amenity with ajax request to url http://ae.osmsurround.org/ae/amenity in javascript language and noticed that amenity information was cleared by my request and it contains only my tag. I sent data in following way:

 { _nodeId: "1243055571",
                                    lon: 60.5831108,
                                    lat: 56.8365555,
                                    _method: "put",
                                    key: "amenity",
                                    key: "entrance",
                                    key: "name",
                                    key: "myId",
                                    value: "restaurant",
                                    value: "yes",
                                    value: "Конкиста",
                                    value: "5465757"
}

What wrong steps i made?

asked 13 May '13, 19:05

vovaekb's gravatar image

vovaekb
11112
accept rate: 0%

edited 13 May '13, 19:08

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

Source code available on GitHub .