×

Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    2

    Driving directions as text

    Hi,

    I'm developing a web application that provides driving directions from point A to point B and I'm using Nokia Maps java script API 2.2.1 in my project.

    I have managed to get the nokia.maps.routing.Manager() routing results successfully between the two points and route is rendered correctly on the map. However, I would also need the directions also in text format which I intend to display in a <div> on my page.

    Google maps API has a functionality for populating the driving directions to a HTML container, but I did not find any similar functionality from Nokia Maps API. Is there such an API available?
    Last edited by ClouMob; 2012-08-06 at 10:05.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Driving directions as text

    I haven't checked the latest version, but I think you should look into what data is given with route segments, I'm rather sure there is the directions given, at least other APIs using same backend are having it there.

  3. #3
    Registered User
    Join Date
    Aug 2012
    Posts
    2

    Re: Driving directions as text

    All needed data for directions is in routes[0].legs[0].maneuvers[], but I was looking for an API that would translate that into localized readable format. Based on your answer, I assume such API does not exist?

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

    Re: Driving directions as text

    Quote Originally Posted by ClouMob View Post
    I assume such API does not exist?
    I haven't discovered a public natural language guidance API yet, but you can roll your own, you just need to figure out the meaning of the turn codes and action codes buried within the manuever.

    This is an example in English and Spanish.
    http://www.developer.nokia.com/Commu...vanced_Routing

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. [announce] Google Directions via PyS60
    By neil.young in forum Symbian
    Replies: 29
    Last Post: 2008-02-15, 10:55
  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
  •  
×