Skip to content

Commit afbe498

Browse files
navba-MSFTmsyyc
andauthored
{AzureMaps} fixes Azure#28009 Remove the LatLon from client.get_route_range and add sample link reference (Azure#28332)
* Update README.md * Update sdk_packaging.toml Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent 314e79b commit afbe498

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

sdk/maps/azure-maps-route/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,27 +109,27 @@ The following sections provide several code snippets covering some of the most c
109109

110110
### Request and Get Route Directions
111111

112-
This service request returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day.
112+
This service request returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. Refer the sample code [here](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/maps/azure-maps-route/samples/sample_get_route_directions.py).
113113

114114
```python
115115
from azure.maps.route import MapsRouteClient
116116

117-
route_directions_result = client.get_route_directions(route_points=[LatLon(47.60323, -122.33028), LatLon(53.2, -106)]);
117+
route_directions_result = client.get_route_directions(route_points=[(47.60323, -122.33028), (53.2, -106)]);
118118
```
119119

120120
### Request and Get Route Range
121121

122-
This service will calculate a set of locations that can be reached from the origin point by given coordinates and based on fuel, energy, time or distance budget that is specified.
122+
This service will calculate a set of locations that can be reached from the origin point by given coordinates and based on fuel, energy, time or distance budget that is specified. Refer the sample code [here](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/maps/azure-maps-route/samples/sample_get_route_range.py).
123123

124124
```python
125125
from azure.maps.route import MapsRouteClient
126126

127-
route_range_result = client.get_route_range(coordinates=LatLon(47.60323, -122.33028), time_budget_in_sec=6000);
127+
route_range_result = client.get_route_range(coordinates=(47.60323, -122.33028), time_budget_in_sec=6000);
128128
```
129129

130130
### Get Route Matrix
131131

132-
If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request.
132+
If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. Refer the sample code [here](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/maps/azure-maps-route/samples/sample_get_route_matrix.py).
133133

134134
Retrieves the result of a previous route matrix request.
135135
The method returns a poller for retrieving the result.
@@ -143,7 +143,7 @@ route_matrix_result = client.begin_get_route_matrix_result(matrix_id="11111111-2
143143
### Get Route Directions Batch
144144

145145
Retrieves the result of a previous route direction batch request.
146-
The method returns a poller for retrieving the result.
146+
The method returns a poller for retrieving the result. Refer sample code [here](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/maps/azure-maps-route/samples/sample_get_route_directions_batch_sync.py).
147147

148148
```python
149149
from azure.maps.route import MapsRouteClient

sdk/maps/azure-maps-route/sdk_packaging.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ is_stable = false
77
is_arm = true
88
need_msrestazure = false
99
need_azuremgmtcore = true
10+
auto_update = false

0 commit comments

Comments
 (0)