Sha256: 9f22e636bf2e79c61a57c12c208297d8285fe04aa7c33d9ea60b8ea1f376ec3a

Contents?: true

Size: 805 Bytes

Versions: 5

Compression:

Stored size: 805 Bytes

Contents

/*google traffic
get duration and distance with location and mode*/
1. URL:
	[GET] https://maps.googleapis.com/maps/api/distancematrix/json?origins={originlocate}&destinations={destlocate}&mode={trafficmode}&key={apikey}
2. header:
3. response:
	{
  "destination_addresses": [
    "Hsinchu County, Taiwan"
  ],
  "origin_addresses": [
    "Taipei City, Taiwan"
  ],
  "rows": [
    {
      "elements": [
        {
          "distance": {
            "text": "80.4 km",
            "value": 80393
          },
          "duration": {
            "text": "2 hours 3 mins",
            "value": 7370
          },
          "fare": {
            "currency": "TWD",
            "text": "NT$131.00",
            "value": 131
          },
          "status": "OK"
        }
      ]
    }
  ],
  "status": "OK"
}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
VIAJERO-0.1.74 apiformat.txt
VIAJERO-0.1.73 apiformat.txt
Time_Traveler-0.1.72 apiformat.txt
Time_Traveler-0.1.71 apiformat.txt
Time_Traveler-0.1.70 apiformat.txt