Hey,
https://download.geofabrik.de/europe/turkey.html
This is the link for data. I also have downloaded a smaller portion of this data by using BBBike but neither of them help me about the area that I’ve mentioned.
url -X POST “http://localhost:8082/ors/v2/matrix/foot-walking”
-H “Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8”
-H “Content-Type: application/json; charset=utf-8”
-d ‘{“locations”:[[lon_value_1, lat_value_1], [lon_value_2, lat_value_2], … ]}’
I told ChatGPT to convert my Python code to cURL.
body = {“locations”: locations}
headers = {
‘Accept’: ‘application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8’,
‘Content-Type’: ‘application/json; charset=utf-8’
}
try:
call = requests.post(‘http://localhost:8082/ors/v2/matrix/foot-walking’, json=body, headers=headers)
print(f"API call status code: {call.status_code}“)
if call.status_code != 200:
print(f"Error: {call.status_code} {call.reason}”)
print(call.text)
exit()
except Exception as e:
print(f"Error making API request: {e}")
exit()
This is the Python code. It works when I run the code with a different dataset, same format (.xlsx), same column names etc.
This is a snippet from problematic dataset
41.132467, 28.455700
41.131543, 28.455952
41.129994, 28.457226
This is a snippet from a dataset that I can work on
40.976505, 28.804295
40.975057, 28.803322
40.974616, 28.802097
I hope these help. If not, I will be happy to share more detailed information.
Best regards.