I constructed a python query to look for all the bus routes passing by a given box. However, I need to speed up the query as much as possible. I only need the lat/lon coordinates of each node representing the bus stops and the name of the routes that they belong to. My current code:
asked 16 Feb '21, 17:51 fragodec |
I don't know if it is more efficient and/or faster but you could search for every bus stop in a given bounding box and then recurse back to the relations that have that stop as member:
answered 20 Feb '21, 21:26 MarcoR Thank you for your answer. This works fine but unfortunately it is slower than my code (with the examples I tried).
(22 Feb '21, 11:17)
fragodec
|