Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stops creator overpass to many connections #69

Closed
mvanlaar opened this issue Sep 18, 2017 · 3 comments
Closed

stops creator overpass to many connections #69

mvanlaar opened this issue Sep 18, 2017 · 3 comments
Labels

Comments

@mvanlaar
Copy link

When building a stops list i\m getting the following error:

Traceback (most recent call last):
File "osm2gtfs.py", line 101, in
main()
File "osm2gtfs.py", line 67, in main
stops_creator.add_stops_to_schedule(schedule, data)
File "C:\Projecten\osm2gtfs\creators\stops_creator.py", line 20, in add_stops_to_schedule
stops = data.get_stops()
File "C:\Projecten\osm2gtfs\core\osm_connector.py", line 239, in get_stops
self._get_names_for_unnamed_stops()
File "C:\Projecten\osm2gtfs\core\osm_connector.py", line 488, in _get_names_for_unnamed_stops
self._find_best_name_for_unnamed_stop(stop)
File "C:\Projecten\osm2gtfs\core\osm_connector.py", line 518, in find_best_name_for_unnamed_stop
""" % (stop.lat, stop.lon, stop.lat, stop.lon))
File "C:\Python27\lib\site-packages\overpy_init
.py", line 123, in query
raise exception.OverpassTooManyRequests
overpy.exception.OverpassTooManyRequests: Too many requests

or

Traceback (most recent call last):
File "osm2gtfs.py", line 101, in
main()
File "osm2gtfs.py", line 67, in main
stops_creator.add_stops_to_schedule(schedule, data)
File "C:\Projecten\osm2gtfs\creators\stops_creator.py", line 20, in add_stops_to_schedule
stops = data.get_stops()
File "C:\Projecten\osm2gtfs\core\osm_connector.py", line 211, in get_stops
self._get_names_for_unnamed_stops()
File "C:\Projecten\osm2gtfs\core\osm_connector.py", line 488, in _get_names_for_unnamed_stops
self._find_best_name_for_unnamed_stop(stop)
File "C:\Projecten\osm2gtfs\core\osm_connector.py", line 545, in find_best_name_for_unnamed_stop
candidate.get_nodes(resolve_missing=True))
File "C:\Python27\lib\site-packages\overpy_init
.py", line 860, in get_nodes
tmp_result = self.result.api.query(query)
File "C:\Python27\lib\site-packages\overpy_init
.py", line 126, in query
raise exception.OverpassGatewayTimeout
overpy.exception.OverpassGatewayTimeout: Server load too high

Is there a way to avoid it?

@grote
Copy link
Owner

grote commented Sep 18, 2017

You could use a different API server: http://wiki.openstreetmap.org/wiki/Overpass_API

Or if you have many stops without names in OSM, you could set name_auto to no in your config file.

@grote grote added the question label Sep 18, 2017
@grote grote closed this as completed Sep 18, 2017
@mvanlaar
Copy link
Author

where can i configure a different server? is this configurable?

@grote
Copy link
Owner

grote commented Sep 21, 2017

You need to ask the people from the overpy library or look into their source. Their API URL is defined here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants