origin property
dynamic
origin
final
The address, textual latitude/longitude value, or place ID from which you wish to calculate directions.
This field is required.
- If you pass an address, the Directions service geocodes the string and converts it to a latitude/longitude coordinate to calculate directions. This coordinate may be different from that returned by the Geocoding API, for example a building entrance rather than its center.
origin=24+Sussex+Drive+Ottawa+ON
- If you pass coordinates, they are used unchanged to calculate directions. Ensure that no space exists between the latitude and longitude values.
origin=41.43206,-81.38992
- Place IDs must be prefixed with place_id:. The place ID may only be specified if the request includes an API key or a Google Maps Platform Premium Plan client ID. You can retrieve place IDs from the Geocoding API and the Places API (including Place Autocomplete). For an example using place IDs from Place Autocomplete, see Place Autocomplete and Directions. For more place IDs, see the Place ID overview.
origin=place_id:ChIJ3S-JXmauEmsRUcIaWtf4MzE
Implementation
final dynamic origin;