Requesting a Venue Index
You want to find out which venues the Venue Maps API supports.
We can retrieve an index by using the resources models-poi
or models-full
.
Request
A request for a venue index file with the models-full
resource and a static callback:
http://static-3.venue.maps.api.here.com/1/models-full/index_bb.js?
This is an example of requesting a Venue Index File, which contains a list of all the available venues in Venue Maps API. For the full reference, see Venues Index. We can retrieve an index using resources models-poi or models-full . In this example, we're going to retrieve Venue Index File using models-full with static callback.
Request:
http://static-3.venue.maps.api.here.com/1/models-poi/index_bb.js?
Policy={YOUR_GENERATED_POLICY}
&Signature={YOUR_GENERATED_SIGNATURE}
&Key-Pair-Id={YOUR_GENERATED_KEY_PAIR_ID}
&app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&mycallback=http%3A%2F%2Fmy.server.com%2Fv-index.js
Response
The response contains the ID and bounding box for each venue:
JSON.venues([{
"gml:id": "DM_6718",
"bb": [[
51.7133798,
5.3122028
], [
51.7117037,
5.3145374
]]
}, {
"gml:id": "DM_9466",
"bb": [[
-6.1498306,
106.8906024
], [
-6.1520246,
106.8934705
]]
}, {
"gml:id": "DM_6846",
"bb": [[
36.7249491,
-4.3148679
], [
36.7227017,
-4.3105854
]]
},
...
]);