Can HERE map tiles display road speed limits? - here-api

I would like to know if the HERE map service allows a developer to configure the tiles to display road speeds in some way?
I see that HERE has APIs for road speeds, but I am not after fetching data, processing and drawing it myself. Rather, I have a map control in my project, and that map control uses the HERE service to fetch map tiles, and I wanted to simply have an option to fetch tiles that (also) displays speeds.
Is there such an option? I have been looking through the docs, but haven't found a way yet.

Regarding some volatility information the Map Tile(raster) API supports only
truck restriction tiles: https://developer.here.com/documentation/map-tile/dev_guide/topics/resource-base-truckonlytile.html
and traffic flow: https://developer.here.com/documentation/map-tile/dev_guide/topics/resource-traffic-flowtile.html
Vector Tile API supports only roads, topologies, cartos and labels - doesn't support also any speed info.
Therefore you can use only Fleet Telematics API that returns only speed limits data then push this info as markers into map, See please examples on https://tcs.ext.here.com/examples/v3.1/pde_speed_limits_in_view or https://tcs.ext.here.com/examples/v3.1/pde_speed_limits_along_route
or https://tcs.ext.here.com/examples/v3.1 - there search by keyword like 'speed'
Documentation:
https://developer.here.com/documentation/fleet-telematics/dev_guide/index.html
https://developer.here.com/documentation/content-map-attributes/dev_guide/index.html - we don't have any examples for this new api.

Related

Mixing HERE content with other providers' map tiles

I am considering extending an application with HERE maps API calls (geocoding, routing, and maybe others). The application allows to select providers for different services and mix them. For example, using map tiles from one provider and showing search results from another one. I wonder, whether it is allowed to do so with HERE REST API call results. For example, show route polyline and use routing instructions from HERE and mix them with Mapbox GL tiles.
Question stems from https://legal.here.com/en-gb/terms/acceptable-use-policy, "Layering and Modifications" which seems to me prohibiting such use. In contrast, Is it possible to use here's Maps API combined with another base map (e.g., Bing, Google, OSM)? response states that it would be OK.
While I can make a separate profile that would enable HERE APIs only with HERE map tiles, I would prefer to allow users to mix providers as it is now. Currently, only HERE map tiles are supported, but those should allow me to layer other data on top, as far as I understand the allowed use terms.
In contrast to reply at Stack Overflow linked above, reply in Knowledge Base states that showing geocoding results on top of other providers tiles is prohibited.

How to get accurate/fresh POIs with Map tiles REST API?

A tile sent from Nokia Here-Map tiles API, contains at least two POIs that do not exists in real life and also not on other Map services like Google Maps and OpenStreetMap. How can i get accurate/fresh POIs with the Map Tiles Api?
I'm using the service with LeafletJs, and i use a hybrid.day base map and a base one, with the pois parameter set to true and map version set to "newest". The tiles i'm getting effectively contains POIs but it doesn't seem accurate. I wrote to the sales support at Nokia Here, i'm not sure they can help me, but the website also indicate to use stackoverflow for technical questions. Mine doesn't seem like a sales related question or a technical one but i see no other alternative contact.
This is a link to get a tile with incorrect POIs:
https://4.base.maps.cit.api.here.com/maptile/2.1/maptile/bd9e007617/normal.day/17/59178/60113/256/png8?app_id=mVrBstuYsfUVga31l6IX&app_code=xphvU-Uj071dI-UkNaxMrg&lg=fre&pois=true&style=default
The tile contains two POIs that do not exists in real life or on other map services like OpenStreetMap. The two are: "Ecobank" and "Restorant Aku".
The place the map shows is around these coordinates: lat:14.729235451930021
lng:-17.46165559897639
The returned tile shouldn't contains inexistant POIs.
This is an error in HERE database. You should report it through HERE Map Creator
It will go through some kind of quality moderation, so it may take a few weeks. Maybe adding a fresh photo would speed up things.

Google Maps Plotting location on railway track

I am working on a GSM based tracking device . i have successfully able to plot the approximate location on google maps using Gmap.net library for windows application and google maps api for android application.I want to mainly do the tracking of the Rail coach .with my current device i gets the approximate location near the railway track.I want to shift that Location /Maker on the near by Rail track.i need help and suggestions on how to achieve this task.please help.
Afaik the gmap.net library does not provide any feature around pinning tracking data, so I guess some manual work might be necessary.
The naive approach is to map your track on your own, google maps etc. is fine. I fact I've used gmap.net once itself to create exactly that.
Then all you need to do is some math (useful key word here is 'shortest path'), to locate the closest matching tracking point and use interpolation to distinguish your anticipated position on the track. You can also add some plausibility checks to speed up the whole process such as "knowing" where on your track you've already been.
I've got experience in real-time tracking for TV events and can go in deeper detail if you want.

Google Tracks geofencing & visualisation API

I am developing a node.js application which (amongst other things) will recieve location information from remote users and allow them to interact with each other via the server.
I'm using the Google Tracks API because I like the idea of being able to track users when appropriate, set up geofencing to define my coverage areas and to visualise what's happening.
The Google tracks API documentation is reasonable, however I'm not sure how I would go about actually visualising the entities and geofencing I have setup on a map - this is not something that I can find covered elsewhere.
Ideally I would be able to simply embed a map into a webpage which could link with my Tracks API account and show all of the fencing and entities. Another nice feature would be the ability to 'draw' a geofence, is there anything out there which would allow this?
Thanks :-)
Tracks API does not currently offer any kind of server-side rendering for your Tracks data, so the best approach is to use the API to retrieve the crumbs (or just current location) and render them using polylines (or just markers) in the Google Maps API. You can similarly get all your geofences and render them using polygons.
Because this is done clientside, you'll probably want to limit your data to a reasonable number (depending on the browser/OS combination, something like O(thousands) of vertices).
All this assumes that your app meets the terms of service of the Maps API so check those out as well.

Nokia Map Tiles REST API

I have an account for Nokia Maps API but am wondering what URL I should use to request tiles through the API correctly? I am using the Leaflet maps API and my URL string looks like this:
http://3.maptile.lbs.ovi.com/maptiler/v2/maptile/newest/normal.day/{z}/{x}/{y}/256/png8?app_id=XXX&token=XXX
It works, but I don't believe I am using the API correctly - I just stole the first part of the URL (http://3.maptile.lbs.ovi.com/maptiler/v2/maptile/newest/normal.day) from the Network tab of dev tools when I checked out Nokia maps in my browser.
In the documentation it tells me I can request based on lat, long and zoom, but not based on X and Y.
Is anybody familiar with Nokia Maps API?
Regarding the original question I'm guessing you have acquired credentials for the Map Image API: http://developer.here.net/docs/map_image/index.html There are a series of interactive examples available, which explain how to get back a static map image using latitude and longitude such as this one here: http://developer.here.net/apiexplorer/examples/api-for-rest/getting-started/basic-map-wh.html All the urls for the Map image API start with http://m.nok.it
Using URLs for the map tiles from the http://here.com website isn't the same service, it isn't an official API (hence the reason it is undocumented) and the URLs could be changed without notice.
Updated
HERE now offers three web-based Maps APIs, and since last year a TMS (Tile Map Service) a.k.a. Map Tile API, which is what I think you are after is now publicly available.
As noted by Luciano Issoe, the correct URLs for the Map Tile API are now publically documented see: https://developer.here.com/rest-apis/documentation/enterprise-map-tile
Alternatively, if you want to use an interactive map service with Nokia's mapping data, your best bet would be to use the Maps API for Javascript described here:
http://developer.here.net/docs/maps_js/index.html
It seems that it´s a documented service now: https://developer.here.com/rest-apis/documentation/enterprise-map-tile
To retrieve a map covering a specific area using the Map Image API, add two points of interest to the map for the top right and bottom left corner and then use the nomrk to make the POIs invisible:
http://m.nok.it/?w=512&poi=52.6764,13.7636,52.351,13.0185&nomrk

Resources