gojuno / osrm-py

Python client for OSRM API
BSD 3-Clause "New" or "Revised" License
17 stars 7 forks source link

ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it #8

Open avsrma opened 4 years ago

avsrma commented 4 years ago

I'm trying to access the map matching utility and keep getting this error. import osrm points = [(-33.45017046193167,-70.65281867980957), (-33.45239047269638,-70.65300107002258), (-33.453867464504555,-70.65277576446533)] client = osrm.Client() response = client.match(coordinates=points)

I'm a little skeptical since there is no parameter to use the API key for OSRM. Could that be the issue?

ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /match/v1/driving/-33.45017046193167,-70.65281867980957;-33.45239047269638,-70.65300107002258;-33.453867464504555,-70.65277576446533?steps=false&annotations=false&geometries=geojson&overview=simplified&gaps=split (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000029A76AA6E48>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

Any help will be appreciated. Alternatively, a suggestion for another package for map matching in python.

Huzaifg commented 3 years ago

I have the same issue. Any help will be appreciated