This method returns data and metadata of specified map.
Resource URL | |
HTTP Method |
|
Parameters | Detail | Example | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID of the map view. This ID is a part of the | 1234 | |||||||||||||||||||||||||||||||||||
| (Optional) Filter used in the map with following structure:
|
| |||||||||||||||||||||||||||||||||||
| (Optional) Date and time definition used in the map with following structure:
|
|
JSON response contains one JSON object. The response is different for point-based map and for shaped-base map.
Name | Description | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
content.options | Configuration of the map
| ||||||||||||||||||||||||||
content.points | Array of GEO points where each point has following structure:
|
Name | Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
content.options | Configuration of the map
| ||||||||||||||||||||||
content.shapes.features | Array of GEO shapes where each shape has following structure:
|
Using curl
:
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/reports/views/1234/map |
The JSON format response (points):
{ "title": "<div class=\"cleverTitle\"><\/div>" "content": { "points" : [ { "longitude" : 45, "latitude" : 40, "properties" : { "ratio" : 0.6323828313278139, "name" : "Armenia", "value" : "-7,142,253,000", "context" : { "identifierQuery" : "[L_COUNTRY_OR_AREA={Armenia}]", "dataLink" : "1_1097087486" } } }, { "longitude" : 133, "latitude" : -27, "properties" : { "ratio" : 0, "name" : "Australia", "value" : "-132,579,546,390", "context" : { "identifierQuery" : "[L_COUNTRY_OR_AREA={Australia}]", "dataLink" : "1_-2097652575" } } } ], "options" : { "indicator" : "Value", "color" : "#4379bd" } } } |