Online Map : Return value

Rainer
Rainer Member Posts: 103
Hello all, does anybody know if its possible to return value of distance from Online Map to Dynamics?

For an ex. using this hyperlink.
HYPERLINK('http://www.google.de/maps?f=d&hl=en&saddr=[from street]+[from post code]+[from city]&daddr='
+Address+' '+"Post Code"+' '+City);

..and then return the distance from A to B.
Kind Regards

E-mail: info@rainerbay.dk
Skype: rainerbaydk

Comments

  • matttrax
    matttrax Member Posts: 2,309
    You would probably have to use a .NET automation to scrape the contents of the page.
  • Rainer
    Rainer Member Posts: 103
    Okay, thanks for answere.
    Kind Regards

    E-mail: info@rainerbay.dk
    Skype: rainerbaydk
  • nina77
    nina77 Member Posts: 5
    Did you get solution for this? How did you get only distance using Online Map?
  • Damjan
    Damjan Member Posts: 94
    Hi Nina77,

    I have finish used OnlineMap standard functionaity and added some code to cover the business content above it.
    In order to get the distance value from Google Map, you need to register to (its not free of charge) https://developers.google.com/maps/documentation/directions/start.

    Then, you need to create a NAV WS so that code can call function to run the WS and get the JSON file from Google WS. Then, this JSON file has to be read into the NAV.

    Thanks, Damjan