Show channel location on map
Show Channel Map to embed a map on a web
(Required) Channel ID for the channel of interest.
(Required for private channels). Specify read API key for this specific channel. Find the read API key on the API Keys tab of the channel view.
(Optional) Map width in pixels. Default map width is 450.
(Optional) Chart height in pixels. Default map height is 260.
The response is a map showing a marker for the latitude and longitude set on the Channel Settings page.
For the full list, see Error Codes.
If you do not have access to the channel, the response is
map is not accessible. Provide a public channel or the read API key for the
private channel as a parameter: read_api_key=XXXXXXXXXXXXXXXX.
Show Channel Map REST call using the example
format. Add the
read_api_key parameter if the channel is
private. Use a web browser to test the call.
Create a html file with the following elements. Replace
<channel_id> with your channel ID and
XXXXXXXXXXXXXXXX with the read API key for the
channel of interest.
<html><head><title>ThingSpeak Embedded Map</title></head> <body> <iframe width="650" height="800" style="border: 1px solid #cccccc;" src="https://thingspeak.com/channels/<channel_id>/maps/channel_show?read_api_key=XXXXXXXXXXXXXXXX&height=800"> </body></html>
Save the file with the
Open the file with a web browser to view the embedded map.