Map Tile API Developer's Guide

Political Views

The /meta/pviews resource handles requests for Political View details.

Note: These examples use a HERE API Key to authenticate your request. For information on other possible options, see Authentication Guide. For examples of how to use the other authentication options with the Map Tile API, see Authentication Examples.

The following URL shows the format of a request and the table below explains each parameter.

https://{1-4}.base.maps.ls.hereapi.com/maptile/2.1/meta/pviews
?apiKey={YOUR_API_KEY}
&{param}={value}

Mandatory Query Parameters

The following table lists the mandatory parameters that need to be specified with every request. Not specifying these parameters will make the system reject the request.

Table 1. Mandatory Query Parameters
Parameter Type Description
app_id

xs:string

A 20-byte Base64 URL-safe encoded string used in one of the available authentication options for the Map Tile API.

If you use the app ID/app code option, you need to include an app_id and app_code with every request. For further details, see Acquiring Credentials.

app_code

xs:string

A 20-byte Base64 URL-safe encoded string used for the authentication of the client application.

If you use the app ID/app code option, you need to include an app_id and app_code with every request. For further details, see Acquiring Credentials.

apiKey

xs:string

A 43-byte Base64 URL-safe encoded string used for the authentication of the client application. As a logged in user, you can generate it at https://developer.here.com/projects. API Keys never expire but you can invalidate your API Keys at any time. You cannot have more than two API Keys for one app at the same time.

You must include an apiKey with every request. For further details, see Acquiring Credentials.

Table 2. POI Information Specific Query parameters
Parameter Type Description
output String Output specifier. The API supports the following output specifier values (and output formats):
  • text – delivers the API metadata in plain text format (this is the default).
  • json – delivers the API metadata in JSON format. For this format the index is not listed as it is implicit from the position in the array.

Example with JSON output

The following example shows a request addressed to the /meta/pviews resource.

Note: Note the information below is just an example so it might be outdated. Check the latest result for an updated list of categories. result for an updated list of values.
https://{1-4}.base.maps.ls.hereapi.com
/maptile/2.1/meta/pviews
?apiKey={YOUR_API_KEY}
&output=json

The response contains information as shown in this example.


{
  "pviews" : [
    "ARG",
    "IND",
    "MAR",
    "PAK"
  ]
}

Example with plain text output

The following example shows a request addressed to the /meta/pviews resource.

Note: Note the information below is just an example so it might be outdated. Check the latest result for an updated list of categories. result for an updated list of values.
https://{1-4}.base.maps.ls.hereapi.com
/maptile/2.1/meta/pviews
?apiKey={YOUR_API_KEY}
    

The response contains information as shown in this example.


ARG,
IND,
MAR,
PAK