Skip to content

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

Description

@avsrma

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions