Find the answer to your Linux question:
Results 1 to 4 of 4
If I use Google maps, say, (I don't know whether it has the functionality I'm discussing here, or not), and my program queries it to know the shortest road between ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Mar 2013
    Posts
    356

    Usage of mapping services


    If I use Google maps, say, (I don't know whether it has the functionality I'm discussing here, or not), and my program queries it to know the shortest road between 2 given points, what format will the data be returned in? If I use the webpage as a human, it just draws the path, right? But if it's a program, then what does it do?
    This goes for any other mapping services as well, I just used GOogle maps as an example.


    Thanks.

  2. #2
    Linux Engineer
    Join Date
    Dec 2013
    Posts
    1,308
    There is no standard for it. With Google you use the directions API and get back either JSON or XML depending on what you requested. https://developers.google.com/maps/d...tionsResponses

    You can set way points and additional legs and also get the information dependant on a few modes of transportation.

  3. #3
    Linux User
    Join Date
    Mar 2013
    Posts
    356
    I can't figure out the

    "polyline": {
    "points": "a~l~Fjk~uOwHJy@P"
    },

    stuff in that article.

  4. #4
    Linux Engineer
    Join Date
    Dec 2013
    Posts
    1,308

Posting Permissions

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