Reference documentation and code samples for the Google Maps Isochrones V1 Client class GenerateIsochroneRequest.
A request to generate a single isochrone.
Generated from protobuf message google.maps.isochrones.v1.GenerateIsochroneRequest
Namespace
Google \ Maps \ Isochrones \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ location |
Google\Type\LatLng
The origin as a latitude/longitude coordinate. |
↳ place |
string
The resource name of a place, in the |
↳ travel_duration |
Google\Protobuf\Duration
Required. The travel time for the isochrone calculation. The value must be positive and is capped at 7200 seconds (120 minutes). For DRIVE mode, the maximum allowed duration is 3600 seconds (60 minutes). |
↳ travel_mode |
int
Required. The mode of transportation. |
↳ travel_direction |
int
Required. The direction of travel. |
↳ routing_preference |
int
Optional. Specifies the preference for how to route. Defaults to TRAFFIC_UNAWARE. |
↳ enable_smoothing |
bool
Optional. Specifies whether to smooth the edges of the resulting isochrone polygons. |
↳ polygon_fidelity |
int
Optional. Controls the precision of the generated polygon. Defaults to POLYGON_FIDELITY_UNSPECIFIED. |
getLocation
The origin as a latitude/longitude coordinate.
| Returns | |
|---|---|
| Type | Description |
Google\Type\LatLng|null |
|
hasLocation
setLocation
The origin as a latitude/longitude coordinate.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Type\LatLng
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPlace
The resource name of a place, in the places/{place_id} format.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasPlace
setPlace
The resource name of a place, in the places/{place_id} format.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTravelDuration
Required. The travel time for the isochrone calculation. The value must be positive and is capped at 7200 seconds (120 minutes).
For DRIVE mode, the maximum allowed duration is 3600 seconds (60 minutes).
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Duration|null |
|
hasTravelDuration
clearTravelDuration
setTravelDuration
Required. The travel time for the isochrone calculation. The value must be positive and is capped at 7200 seconds (120 minutes).
For DRIVE mode, the maximum allowed duration is 3600 seconds (60 minutes).
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Duration
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTravelMode
Required. The mode of transportation.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type TravelMode. |
setTravelMode
Required. The mode of transportation.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type TravelMode. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTravelDirection
Required. The direction of travel.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type TravelDirection. |
setTravelDirection
Required. The direction of travel.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type TravelDirection. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRoutingPreference
Optional. Specifies the preference for how to route. Defaults to TRAFFIC_UNAWARE.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type RoutingPreference. |
setRoutingPreference
Optional. Specifies the preference for how to route. Defaults to TRAFFIC_UNAWARE.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type RoutingPreference. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEnableSmoothing
Optional. Specifies whether to smooth the edges of the resulting isochrone polygons.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setEnableSmoothing
Optional. Specifies whether to smooth the edges of the resulting isochrone polygons.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPolygonFidelity
Optional. Controls the precision of the generated polygon.
Defaults to POLYGON_FIDELITY_UNSPECIFIED.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type PolygonFidelity. |
setPolygonFidelity
Optional. Controls the precision of the generated polygon.
Defaults to POLYGON_FIDELITY_UNSPECIFIED.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type PolygonFidelity. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOrigin
| Returns | |
|---|---|
| Type | Description |
string |
|