source code for Google Maps
- Provide destination Latitude and Longitude.
- Show markers for source and destination locations.
- Draw polyline for the closest path between source and destination.
- Navigate destination to google map app and use route direction.
GET https://maps.googleapis.com/maps/api/place/autocomplete/json?key=&input=&sessiontoken=sesstionToken
Parameter | Type | Description |
---|---|---|
api_key |
string |
Required. Your API key |
input |
string |
Required. User Input |
SessionToken |
string |
Required. Generated One |
GET https://maps.googleapis.com/maps/api/place/details/json?key=&sessiontoken=&place_id=&fields=geometry
Parameter | Type | Description |
---|---|---|
place_id |
string |
Required. place_id |
fields |
string |
Optional. geometry |
api_key |
string |
Required. Your API key |