×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    19

    Traffic Directions.....

    Hi,

    How are people getting Traffic Directions like on the demo map.... http://here.com/directions?

    I cannot see anything in the API for this..

    H.

  2. #2
    Regular Contributor
    Join Date
    Aug 2011
    Location
    Berlin
    Posts
    289

    Re: Traffic Directions.....

    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.

  3. #3
    Registered User
    Join Date
    Feb 2013
    Posts
    19

    Re: Traffic Directions.....

    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 08:53.

  4. #4
    Regular Contributor
    Join Date
    Aug 2011
    Location
    Berlin
    Posts
    289

    Re: Traffic Directions.....

    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[0].maneuvers[1].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.
    Last edited by jasfox; 2013-03-13 at 11:10.

  5. #5
    Regular Contributor
    Join Date
    Aug 2011
    Location
    Berlin
    Posts
    289

    Re: Traffic Directions.....

    Quote Originally Posted by jasfox View Post
    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[0].maneuvers[1].instruction element
    The sample code has now been updated to use version 2.2.4 of the API, and much of the burden of translating the directions has been removed from the client code. 2.2.4 still doesn't offer imperial units directly, so the conversion code for metres->yards + miles remains.

  6. #6
    Registered User
    Join Date
    Feb 2013
    Posts
    19

    Re: Traffic Directions.....

    Thanks again Jas,

    Got the details now.

    H

Similar Threads

  1. What countries is driving directions available in?
    By waelfarouk in forum [Archived] Maps API for Javascript
    Replies: 2
    Last Post: 2012-05-23, 09:37
  2. *Directions*
    By tjprakashmca in forum Mobile Java General
    Replies: 1
    Last Post: 2009-02-07, 18:26
  3. Warning: Traffic View: Listing of TCP/UDP Received traffic is set to off (see Monitor
    By duanbo in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2009-01-16, 11:04
  4. give me some directions
    By not_this_punk in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2007-01-12, 16:20
  5. both directions synchronization
    By javacard@hotmail.com in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2006-11-19, 04:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×