How are people getting Traffic Directions like on the demo map.... http://here.com/directions?
I cannot see anything in the API for this..
There is an article in the wiki about this: http://www.developer.nokia.com/Commu...vanced_Routing - it uses the turnCode and actionCode from each Manuever to build up a human-readable text.
Of course it is also possible to create Deep links directly into HERE maps, which does the job of translating for you.
Hey, Thanks for that....
But I think they are not doing any of these things for the following.... http://here.com/directions/drive/Leeds,_United_Kingdom[826gcwfh-07f6692a3a0f4033a145e410c4b525a8]/Blackpool,_United_Kingdom[53.80963,-3.05082]/@a79afc8d3ff753307872c30fb9b449ea/map=53.618,13.6183124,5,0,0,normal.day
I see now, it's a web page in itself, our app would need to go there and back. Hmmmm....not good for us.
Last edited by harvo18; 2013-03-12 at 09:53.
The sample code associated in the advanced routing wiki article shows two methods for adding directions to your own web page using either DOM or innerHTML(). Note that the example currently refers to the older 2.2.3 version of the API, and that the newer 2.2.4 version does offer language translations in the route.legs.maneuvers.instruction element
The deep links to here.com routing offers a quick and easy way to add directions to a website - but will of course mean that the user leaves the site.
The other (ugly) alternative would be to use an IFRAME - this would give you the here.com look and feel within your web page.
The decision is up to you.