put
https://youmaps-eu.appspot.com/_ah/api/youmaps/v2.0/addPoints
Add points to a mapdata
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
The "points" parameter must be a stringified JsonArray object containing the points attributes and address or latitude/longitude.
The latitude value must be between -85 and +85 and the longitude one must be between -180 and +180 in the WGS84 projection.
The address must be a String containing the postal address.
The attributes must be represented by a JsonObject containing attribute name/attribute value pairs.
For example :
var pointsJsonArray = [{"lat":43.5, "lng":3.8, "attributes":{"Name":"Viktor Blom","Phone":0033123456789,"Age":25}},
{"lat":43.8, "lng":3.6, "attributes":{"Name":"Doug Polk","Phone":0033123789456,"Age":26}},
{"lat":44.5, "lng":3.4, "attributes":{"Name":"Alexandre Luneau","Phone":0033456789123,"Age":28}}];
var points = JSON.stringify(pointsJsonArray);
Or :
var pointsJsonArray = [{"address":"266 place Ernest Granier, 34000 Montpellier", "attributes":{"Name":"Viktor Blom","Phone":0033123456789,"Age":25}},
{"address":"6 rue de la grange Ory, 94000 Cachan", "attributes":{"Name":"Doug Polk","Phone":0033123789456,"Age":26}},
{"address":"12 avenue du Pirée, 34000 Montpellier", "attributes":{"Name":"Alexandre Luneau","Phone":0033456789123,"Age":28}}];
var points = JSON.stringify(pointsJsonArray);
If successful, this method adds the points to the mapdata defined by the "mapdataName" parameter and returns a 200 HTTP response containing the newly added points keys.
