×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    2

    Can you pass a query string in the maps.nokia.com site?

    My web application is currently using google maps to get driving directions. Trying to convert this to use the maps.nokia.com website but I can not find any documentation on how to do this.

    For google, able to do it like this

    <a href=http://www.google.com/maps?f=q&hl=en&daddr=[endaddress]&ll=[latitude],[longitude]&saddr=[startaddress] target='_blank' >Directions</a>

    Is there a similar way to do this in the Nokia map site?

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

    Re: Can you pass a query string in the maps.nokia.com site?


  3. #3
    Registered User
    Join Date
    Dec 2011
    Posts
    2

    Re: Can you pass a query string in the maps.nokia.com site?

    Yes it's about routing, and I am using it on a webpage. I have already looked at the samples on the Maps API playground, already implemented displaying markers on a map. What I am trying to accomplish is when clicking a marker's information bubble, it will launch the maps.nokia.com site populating it with the selected address of the marker as my destination along with a predefined starting location, then displays the driving directions. Is there an available functionality like this in Nokia?

    I looked at the samples but these are for OVI Maps API, plus web app needs the driving directions displayed.

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

    Re: Can you pass a query string in the maps.nokia.com site?

    AFAIK there is no 3rd party interface for maps.ovi.com, the API provided is intented to be used in a way that you make your own service and host it in your own web page only.

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

    Re: Can you pass a query string in the maps.nokia.com site?

    Quote Originally Posted by usaherds View Post
    My web application is currently using google maps to get driving directions. Trying to convert this to use the maps.nokia.com website but I can not find any documentation on how to do this.

    For google, able to do it like this

    <a href=http://www.google.com/maps?f=q&hl=en&daddr=[endaddress]&ll=[latitude],[longitude]&saddr=[startaddress] target='_blank' >Directions</a>

    Is there a similar way to do this in the Nokia map site?
    I've started adding a coded example which takes addresses from a query string, geocodes them and calculates a route. I hope to expand it to cover much more of the routing functionality available through the Nokia Maps APIs.
    There is nothing in the article yet, but for the first part of the worked example, I've created a script which takes the syntax url?addr1=...&addr2=... &addr3=... to display a route. look at the source code in the zip file associated with the empty article at: http://www.developer.nokia.com/Commu...vanced_Routing

    You would be much better off using known Geocoordinates rather than addresses though, since you could avoid the geocode step. I'll be adding that soon, along with the generated driving instructions.

  6. #6
    Nokia Developer Expert
    Join Date
    Jan 2012
    Location
    Berlin, Germany
    Posts
    1

    Re: Can you pass a query string in the maps.nokia.com site?

    Hi,

    Sorry for getting on this thread so late. Yes this is possible! Easiest way to create a deeplink URL is simply go to maps.nokia.com, plan a route and use the share button to generate a URL (the 3 dots connected by lines). You'll get a shorted URL like:
    http://nok.it/UtuNR

    Alternatively you can create a URL manually using this scheme:
    http://maps.nokia.com/services/direc...sport_mode=car

    The latitude/longitude and name parameters for the starting point are:
    x0,y0,n0

    Just use 'x1,y1,n1' for the destination point. You can add as many waypoints as you like, the first and last will be start and destination.

    As you see you can also add a route type (fastest/shortest) and transport mode (car/pedestrian/publicTransport) as well.

    This is not documented yet unfortunately. We're working on getting this information out there. Stay tuned.

    Regards,
    Stefan - maps.nokia.com developer

  7. #7
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,098

    Re: Can you pass a query string in the maps.nokia.com site?

    Hi there, usaherds

    This is not a service, this is rather a human readable URL which acts as a state indicator for the App.

    Best Regards,
    Marko
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

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

    Re: Can you pass a query string in the maps.nokia.com site?

    Query string deep linking has recently been made available in maps.nokia.com. Since April 2012, deep links can be created by any other service and link directly into the application. Full details can be found in the blog post:
    http://www.developer.nokia.com/Commu...i-url-creation

Similar Threads

  1. Is there a way to convert Maps Data from Nokia Maps 3 to be compatible with N Maps 2
    By dimchopicha in forum General Development Questions
    Replies: 6
    Last Post: 2011-01-09, 17:50
  2. How to pass a String of Text from Computer to Mobile Phone.
    By saugat_2001 in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2009-01-12, 11:04

Posting Permissions

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