当我运行这段代码时,任何人都可以帮助我,这是从mapbox返回401的mapmatcher API教程,在教程中它应该返回200我按照教程所说的那样做,所以我不知道是什么问题?
from mapbox import MapMatcher
service = MapMatcher()
line = {
"type": "Feature",
"properties": {
"coordTimes": [
"2015-04-21T06:00:00Z",
"2015-04-21T06:00:05Z",
"2015-04-21T06:00:10Z",
"2015-04-21T06:00:15Z",
"2015-04-21T06:00:20Z"]},
"geometry": {
"type": "LineString",
"coordinates": [
[13.418946862220764, 52.50055852688439],
[13.419011235237122, 52.50113000479732],
[13.419756889343262, 52.50171780290061],
[13.419885635375975, 52.50237416816131],
[13.420631289482117, 52.50294888790448]]}}
response = service.match(line, profile='mapbox.driving')
response.status_code