gojuno / gojuno/osrm-py

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

Open
#8 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
19
Forks
7
PR merge metrics
No merged PRs in 30d

Description

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(': 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.