Google API

clemboclembo Member Posts: 122
I need to include some information in Nav.
Usee want to get distance from two points. In a form I've two address and want to return distance value in textbox.
Using google API this is possible but I don't know how to do it in Nav.
This is link

http://code.google.com/intl/it-IT/apis/ ... irections/

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You could have a look at this download to get you started: Google Maps For Dynamics Nav Forms
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • clemboclembo Member Posts: 122
    But my request is different.
    I need only get distance from two point (address, town, country)..

    There is a way to read xml or JSON from nav .. I think..

    Someone can help me?
  • SogSog Member Posts: 1,023
    Yes there is a way, a webservice could be helpfull because it can have an xml as response.
    But I think your use of the google api is not wanted by google:
    Google wrote:
    Note: the Directions API may only be used in conjunction with displaying results on a Google map; using Directions data without displaying a map for which directions data was requested is prohibited. Additionally, calculation of directions generates copyrights and warnings which must be displayed to the user in some fashion. For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions.
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • clemboclembo Member Posts: 122
    Why you think so.
    If you read my link in previuous post you can read that google return JSON webservice or xml file.
    Limit si number request only..

    But how I can get xml returned from google?
    How I can consume JSON webservice?
  • SteeleSteele Member Posts: 5
    I am also curious how to consume Json in NAV.
    I think you must use Json Serializer, please let me know if this works :)
    http://msdn.microsoft.com/en-us/library/system.runtime.serialization.json.datacontractjsonserializer.aspx
  • John_NijsJohn_Nijs Member Posts: 2
    Did you find a solution for this ? How can we read the xml file that the google api returns in NAV ?
Sign In or Register to comment.