Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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 Guru
    Join Date
    Dec 2013
    Location
    Victoria, B.C. Canada
    Posts
    2,103
    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
    I can't figure out the

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

    stuff in that article.

  4. $spacer_open
    $spacer_close
  5. #4

Posting Permissions

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