Hi,
I am trying to use the Map Matching API to snap some inaccurate GPS measurements to a road. I am trying an example file with a few samples, but I am getting the error {“message”:“Invalid input. At least 2 points for Map Matching API have to be specified but was: 0”} . I don’t really understand this error as the file has right now 6 points. I have checked the examples in the documentation and the format of the GPX file is correct. Can someone point me to a possible source for this error?
Additional Info:
Host: graphhopper.com
user-agent: insomnia/2020.4.2
content-type: application/gpx+xml
accept: /
content-length: 296
I posted this towards the official API:
curl -XPOST -H "Content-Type: application/gpx+xml" "https://graphhopper.com/api/1/match?key=YOUR_KEY&vehicle=car" --data @test.gpx
And the problem persists.