-
Notifications
You must be signed in to change notification settings - Fork 18
Issue facing while fetch Stop Station Data #1307
Description
Hi Team,
I appreciate your services are informative with good accuracy therefore I am using with valhalla route for Multi-Model Here are my attempts:-
- Run Multi-Model service through valhalla by using transit.land api consequently i found "429" error due to api hit limit.
- Setup a local instance of valhalla to test out the multi modal routing engine. I have launched my own instance of transit.land And I successfully loaded the feed following this guide. I am newbie to use this service so, that I have changed my code to only fetch for actransit, nycdotsiferry, nyct, samtrans and caltrain following this .
The code path seems to suggest that /api/v1/stop_stations is not returning any data. So there was nothing to write to the pbf file. I double check that in a curl call and that seems to be correct.
@irees Please check
Thanks Yashowardhan
Changeset #20 applied:
- 1 operator(s) created or updated
- 6 feed(s) created or updated
- 0 stop(s) created or updated
- 0 route(s) created or updated
Creating changeset from /root/transitland-datastore/db/sample-changesets/actransit.json
Changeset apply/revert Changeset's #21 created
Applying changeset apply/revert Changeset's #21
Changeset apply/revert Changeset's #21 applied: - 1 operator(s) created or updated
- 1 feed(s) created or updated
- 0 stop(s) created or updated
- 0 route(s) created or updated
Creating changeset from /root/transitland-datastore/db/sample-changesets/samtrans.json
Changeset Update gems #22 created
Applying changeset Update gems #22
Changeset Update gems #22 applied: - 1 operator(s) created or updated
- 1 feed(s) created or updated
- 0 stop(s) created or updated
- 0 route(s) created or updated
-- I am not geeting stop and route data please help me
- Run with import level = 2:-
curl 'http://10.10.21.160:3000/api/v1/stop_stations?total=false&per_page=10&bbox=-122.5,37.49,-122.25,37.75&import_level=2' | python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 86 0 86 0 0 324 0 --:--:-- --:--:-- --:--:-- 325
{
"message": "[NoMethodError] undefined method `singularize' for :stop_stations:Symbol"
}
- If I run command for import level = 4 then output like:-
curl 'http://10.10.21.160:3000/api/v1/stop_stations?total=false&per_page=10&bbox=-122.5,37.49,-122.25,37.75&import_level=4' | python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89 0 89 0 0 2135 0 --:--:-- --:--:-- --:--:-- 2170
{
"meta": {
"offset": 0,
"per_page": 10,
"sort_key": "id",
"sort_order": "asc"
},
"stop_stations": []
}
valhalla_build_transit valhalla.json http://10.10.21.86:8080 1000 valhalla_tiles -122.41,37.71,-122.37,37.80 4
2020/10/16 07:47:25.883266 �[32;1m[INFO]�[0m Fetching transit feeds
2020/10/16 07:47:26.348924 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.348942 �[33;1m[WARN]�[0m Skipping non-polygonal feature:
2020/10/16 07:47:26.348948 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.349052 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.349143 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.349180 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.349258 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.349334 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.349409 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.349485 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.349509 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.349532 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.349555 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.349578 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.349601 �[32;1m[INFO]�[0m Fetching ID:
2020/10/16 07:47:26.781944 �[32;1m[INFO]�[0m 2/000/733/190.gph should have 92 stations
2020/10/16 07:47:26.873745 �[32;1m[INFO]�[0m 2/000/733/191.gph should have 415 stations
2020/10/16 07:47:26.956059 �[32;1m[INFO]�[0m 2/000/733/192.gph should have 79 stations
2020/10/16 07:47:27.097549 �[32;1m[INFO]�[0m 2/000/734/629.gph should have 36 stations
2020/10/16 07:47:27.197881 �[32;1m[INFO]�[0m 2/000/734/630.gph should have 1067 stations
2020/10/16 07:47:27.323485 �[32;1m[INFO]�[0m 2/000/734/631.gph should have 1530 stations
2020/10/16 07:47:27.538427 �[32;1m[INFO]�[0m 2/000/734/632.gph should have 318 stations
2020/10/16 07:47:27.765701 �[32;1m[INFO]�[0m 2/000/736/070.gph should have 2048 stations
2020/10/16 07:47:27.932641 �[32;1m[INFO]�[0m 2/000/736/071.gph should have 1200 stations
2020/10/16 07:47:28.346700 �[32;1m[INFO]�[0m 2/000/752/103.gph should have 19 stations
2020/10/16 07:47:28.543227 �[32;1m[INFO]�[0m 2/000/752/104.gph should have 4 stations
2020/10/16 07:47:28.741028 �[32;1m[INFO]�[0m 2/000/753/543.gph should have 1 stations
2020/10/16 07:47:28.903625 �[32;1m[INFO]�[0m 2/000/753/544.gph should have 2204 stations
2020/10/16 07:47:28.967832 �[32;1m[INFO]�[0m Finished with 13 transit tiles in 14 feeds
2020/10/16 07:47:28.968301 �[32;1m[INFO]�[0m Fetching 13 transit tiles with 6 threads...
2020/10/16 07:47:28.969528 �[33;1m[WARN]�[0m Time zone db /home/ce00081016/valhalla/valhalla/California_test/valhalla_tiles/timezones.sqlite not found. Not saving time zone information from db.
2020/10/16 07:47:28.969614 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/753/544.pbf
2020/10/16 07:47:28.969655 �[33;1m[WARN]�[0m Time zone db /home/ce00081016/valhalla/valhalla/California_test/valhalla_tiles/timezones.sqlite not found. Not saving time zone information from db.
2020/10/16 07:47:28.969699 �[33;1m[WARN]�[0m Time zone db /home/ce00081016/valhalla/valhalla/California_test/valhalla_tiles/timezones.sqlite not found. Not saving time zone information from db.
2020/10/16 07:47:28.969723 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/736/070.pbf
2020/10/16 07:47:28.969775 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/734/631.pbf
2020/10/16 07:47:28.970030 �[33;1m[WARN]�[0m Time zone db /home/ce00081016/valhalla/valhalla/California_test/valhalla_tiles/timezones.sqlite not found. Not saving time zone information from db.
2020/10/16 07:47:28.970124 �[33;1m[WARN]�[0m Time zone db /home/ce00081016/valhalla/valhalla/California_test/valhalla_tiles/timezones.sqlite not found. Not saving time zone information from db.
2020/10/16 07:47:28.970145 �[33;1m[WARN]�[0m Time zone db /home/ce00081016/valhalla/valhalla/California_test/valhalla_tiles/timezones.sqlite not found. Not saving time zone information from db.
2020/10/16 07:47:28.970165 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/736/071.pbf
2020/10/16 07:47:28.970360 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/733/191.pbf
2020/10/16 07:47:28.970256 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/734/630.pbf
2020/10/16 07:47:29.015741 �[33;1m[WARN]�[0m valhalla_tiles/2/000/734/630.pbf had no stops and will not be stored
2020/10/16 07:47:29.015810 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/734/632.pbf
2020/10/16 07:47:29.158196 �[33;1m[WARN]�[0m valhalla_tiles/2/000/734/631.pbf had no stops and will not be stored
2020/10/16 07:47:29.158298 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/733/190.pbf
2020/10/16 07:47:29.163611 �[33;1m[WARN]�[0m valhalla_tiles/2/000/733/191.pbf had no stops and will not be stored
2020/10/16 07:47:29.163695 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/733/192.pbf
2020/10/16 07:47:29.164114 �[33;1m[WARN]�[0m valhalla_tiles/2/000/736/070.pbf had no stops and will not be stored
2020/10/16 07:47:29.164190 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/734/629.pbf
2020/10/16 07:47:29.171174 �[33;1m[WARN]�[0m valhalla_tiles/2/000/753/544.pbf had no stops and will not be stored
2020/10/16 07:47:29.171259 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/752/103.pbf
2020/10/16 07:47:29.171654 �[33;1m[WARN]�[0m valhalla_tiles/2/000/736/071.pbf had no stops and will not be stored
2020/10/16 07:47:29.171722 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/752/104.pbf
2020/10/16 07:47:29.183869 �[33;1m[WARN]�[0m valhalla_tiles/2/000/734/632.pbf had no stops and will not be stored
2020/10/16 07:47:29.183929 �[32;1m[INFO]�[0m Fetching valhalla_tiles/2/000/753/543.pbf
2020/10/16 07:47:29.215052 �[33;1m[WARN]�[0m valhalla_tiles/2/000/733/192.pbf had no stops and will not be stored
2020/10/16 07:47:29.354742 �[33;1m[WARN]�[0m valhalla_tiles/2/000/733/190.pbf had no stops and will not be stored
2020/10/16 07:47:29.355023 �[33;1m[WARN]�[0m valhalla_tiles/2/000/752/103.pbf had no stops and will not be stored
2020/10/16 07:47:29.355281 �[33;1m[WARN]�[0m valhalla_tiles/2/000/734/629.pbf had no stops and will not be stored
2020/10/16 07:47:29.356547 �[33;1m[WARN]�[0m valhalla_tiles/2/000/753/543.pbf had no stops and will not be stored
2020/10/16 07:47:29.357256 �[33;1m[WARN]�[0m valhalla_tiles/2/000/752/104.pbf had no stops and will not be stored
2020/10/16 07:47:29.357546 �[32;1m[INFO]�[0m Finished
2020/10/16 07:47:29.357996 �[32;1m[INFO]�[0m Stitching 0 transit tiles with 6 threads...
2020/10/16 07:47:29.358562 �[32;1m[INFO]�[0m Finished
2020/10/16 07:47:29.516173 �[32;1m[INFO]�[0m Building transit network.
2020/10/16 07:47:29.516225 �[32;1m[INFO]�[0m Building transit network.
2020/10/16 07:47:29.516229 �[32;1m[INFO]�[0m No transit tiles found. Transit will not be added.
2020/10/16 07:47:29.516234 �[32;1m[INFO]�[0m Validating transit network.
2020/10/16 07:47:29.516314 �[32;1m[INFO]�[0m Transit directory not found. Transit will not be added.