Skip to content

Commit 4b32820

Browse files
committed
Change GeoJSON sample in requeset body.
1 parent 26c63a4 commit 4b32820

File tree

1 file changed

+52
-30
lines changed

1 file changed

+52
-30
lines changed

articles/azure-maps/migrate-calculate-route.md

Lines changed: 52 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -75,36 +75,58 @@ https://atlas.microsoft.com/route/directions?api-version=2025-01-01&subscription
7575
Included in the body of the request:
7676

7777
```json
78-
{
79-
  "type": "FeatureCollection",`
80-
  "features": [
81-
    {
82-
      "type": "Feature",
83-
      "geometry": {
84-
        "coordinates": [
85-
         -122.204171,47.610173
86-
        ],
87-
        "type": "Point"
88-
      },
89-
      "properties": {
90-
        "pointIndex": 0,
91-
        "pointType": "waypoint"
92-
      }
93-
    },
94-
    {
95-
      "type": "Feature",
96-
      "geometry": {
97-
        "coordinates": [
98-
          -122.204171,47.612440
99-
        ],
100-
        "type": "Point"
101-
      },
102-
      "properties": {
103-
        "pointIndex": 1,
104-
        "pointType": "waypoint"
105-
      }
106-
    }
107-
  ]
78+
{
79+
"type": "FeatureCollection",
80+
"features": [
81+
{
82+
"type": "Feature",
83+
"geometry": {
84+
"coordinates": [
85+
-122.201399,
86+
47.608678
87+
],
88+
"type": "Point"
89+
},
90+
"properties": {
91+
"pointIndex": 0,
92+
"pointType": "waypoint"
93+
}
94+
},
95+
{
96+
"type": "Feature",
97+
"geometry": {
98+
"coordinates": [
99+
-122.20687,
100+
47.612002
101+
],
102+
"type": "Point"
103+
},
104+
"properties": {
105+
"pointIndex": 1,
106+
"pointType": "viaWaypoint"
107+
}
108+
},
109+
{
110+
"type": "Feature",
111+
"geometry": {
112+
"coordinates": [
113+
-122.201669,
114+
47.615076
115+
],
116+
"type": "Point"
117+
},
118+
"properties": {
119+
"pointIndex": 2,
120+
"pointType": "waypoint"
121+
}
122+
}
123+
],
124+
"optimizeRoute": "fastestWithTraffic",
125+
"routeOutputOptions": [
126+
"routePath"
127+
],
128+
"maxRouteCount": 3,
129+
"travelMode": "driving"
108130
}
109131
```
110132

0 commit comments

Comments
 (0)