IndecipherableSuggestions / RoadTripify

0 stars 5 forks source link

Google Map Api & Navigation Research #1

Closed anxsaiyuki closed 8 years ago

szhou1 commented 8 years ago

google maps distance matrix API

input: [origin, destination, departure_time, travel_mode] necessary output: [duration in seconds]

Example: https://maps.googleapis.com/maps/api/distancematrix/json?origins=Vancouver+BC&destinations=San+Francisco&key=AIzaSyBsIiZH2ylVl06HgMkTzpxh9Zg9-Gr6Yz8

{ "destination_addresses" : [ "San Francisco, CA, USA" ], "origin_addresses" : [ "Vancouver, BC, Canada" ], "rows" : [ { "elements" : [ { "distance" : { "text" : "1,528 km", "value" : 1528365 }, "duration" : { "text" : "14 hours 46 mins", "value" : 53171 }, "status" : "OK" } ] } ], "status" : "OK" }

Environment climate / conditions (desert, mountain, ocean, lake, city, plains, country, swamp, beach, suburbs, jungle, tundra, rainforest, canyon, hills)

Idea: map the song with the location in DB so that in the future, listeners will be recommended that song if they will be traveling at that location