locked
Create a map calculating itinerary from users location to a set adress RRS feed

  • Question

  • Dear Community,

    I'm trying to use this tool (http://www.bingmapsportal.com/ISDK/AjaxV7#CreateMap1) to create a map that gives itinerary to the users from their location to mine (location which won't change). I read some ressources on MSDN but I don't know how to add different controls on the same map and how to set my start adress (which changes thanks to the geolocation).

    I will integrate that map in my website (created with expression web 4) with the html code provided. I hope my question is understandable.

    If someone could help me to create it...

    Thanks in advance for your answers.

    Best regards.

    edit: what I've already done --> http://www.bingmapsportal.com/ISDK/AjaxV7#GetUserLocation1 and copy/paste in my website page. It works.

    Then I would like to use this http://www.bingmapsportal.com/ISDK/AjaxV7#RESTServices2 changing varstart='adress obtained with getCurrentLocation'
    • Edited by Osteopathe Sunday, August 18, 2013 8:57 AM
    Saturday, August 17, 2013 2:57 PM

Answers

All replies

  • Instead of using the REST services for directions use the DirectionsManager: http://www.bingmapsportal.com/ISDK/AjaxV7#DirectionsModule2

    http://rbrundritt.wordpress.com

    Sunday, August 25, 2013 5:04 PM
  • Hello Ricky_Brundritt,

    thanks for the advice but I still don't know what to set for the waypoint. I mean it needs town's name... but I would like to use the location obtained with getuserlocation (so it could be geographic coordinates instead of town's name). Just one of my waypoint will be a town.

    What is the name of the results of that command and how to use it for what I want (if it's possible) ?

    If you have an example of the code or the good ressource to learn, let me know.

    Thanks in advance.

    Best regards.


    • Edited by Osteopathe Sunday, August 25, 2013 8:03 PM
    Sunday, August 25, 2013 7:58 PM