ThijmenStar / py-interrail

An api wrapper for interrail planner
MIT License
2 stars 0 forks source link

stopLocationOrCoordLocation issue #1

Open mateosere opened 8 months ago

mateosere commented 8 months ago

I'm following the example provided in the main page and I receive stopLocationOrCoordLocation.

Just for reference, this is what I'm doing.


from interrail.api import *

# To search for a station use get_stop_location
amsterdam = get_stop_location("Amsterdam Centraal")
paris = get_stop_location("Paris")

# To plan a trip between two stations use get_trip
trip = get_trip(origin=amsterdam, dest=paris, departure_time=datetime.now())
janausis commented 2 months ago

They changed the endpoint for their api. The old one is now no longer public, thus this error