GBFS: Never results...

251 views
Skip to first unread message

Marco Gatto

unread,
Mar 22, 2022, 5:22:48 AM3/22/22
to OpenTripPlanner Users
Hello to everyone
I'm using OTP 2.1 
I'm trying to find a trip with GBFS feed:

{
     "type": "vehicle-rental",
     "frequencySec": 60,
     "sourceType": "gbfs",
     "url": "https://data.lime.bike/api/partners/v1/gbfs/rome/gbfs.json",
        "allowKeepingRentedBicycleAtDestination": true

    }

http GET parm mode is set:
mode=BICYCLE_RENT

But return ALWAYS walk mode.....
I've tried with:

So I've never had a result with a bike...

Can you help me?
tks!!
Marco

Leonard Ehrenfried

unread,
Mar 22, 2022, 5:53:32 AM3/22/22
to opentrippl...@googlegroups.com
Hi Marco,

I took a quick look at the feed and it appears that these are floating bikes (no stations) and for that you need to enable an experimental feature. Look at the Entur example config: https://github.com/opentripplanner/OpenTripPlanner/blob/dev-2.x/docs/examples/entur/otp-config.json#L6

Hope this helps.

--
  Leonard Ehrenfried

--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-...@googlegroups.com.

Marco Gatto

unread,
Mar 22, 2022, 6:01:46 AM3/22/22
to OpenTripPlanner Users
TKS for repsonse!! 
I've read this on Release notes of 2.1.0:

  • GBFS 2.2 is supported including "form factors" (bike, scooter, car) and floating vehicles (with no fixed station)
Anyway... I've trying your advise later!

Marco

Marco Gatto

unread,
Mar 22, 2022, 11:00:49 AM3/22/22
to OpenTripPlanner Users
OOOK it works!!!! tks a lot Leonard!!!

I've noticed that "rent scooter" use bicycle lane.. it's strange..

Where is documentation for API Bike Rental? I need to know what type of veichle and operator for 95efa127-e505-40dc-9168-a8ee16622049 

GBFS feeds:



imm.png

Leonard Ehrenfried

unread,
Mar 22, 2022, 5:14:19 PM3/22/22
to opentrippl...@googlegroups.com
The REST API, which the debug client uses, probably doesn't have the information that you are looking for, namely the form factor of the vehicle.

I suggest that you enable the GraphQL API (http://docs.opentripplanner.org/en/dev-2.x/sandbox/LegacyGraphQLApi/) and explore the data that way. If you use an API client like Postman or Insomnia, it has built in documentation.

By the way, I agree that having to enable the FloatingBike is confusing. I proposed to enable it by default: https://github.com/opentripplanner/OpenTripPlanner/pull/4012

Best,
--
  Leonard Ehrenfried


Marco Gatto

unread,
Mar 23, 2022, 7:19:30 AM3/23/22
to OpenTripPlanner Users
Leonard
your advises are special!
GraphQL are very useful. 

I think that travel planner should be return veichle id with operator ("bird-rome") prefix or query doesn't return item...

Schermata 2022-03-23 alle 12.10.16.png

Schermata 2022-03-23 alle 12.11.47.png


Just a question.. veichleId is different for same veichle (same lat,lon) in GBFS json file. Does OTP updater job change veichleIDs with owns guids?

Tks tks tks a lot!
M.

Leonard Ehrenfried

unread,
Mar 23, 2022, 10:13:26 AM3/23/22
to opentrippl...@googlegroups.com
OTP doesn't change the ID when parsing.

Just a gut feeling: I know that some bike share operators randomize their IDs for privacy reasons so you cannot track which vehicle goes where.

Can you check that this isn't happening here?

--
Reply all
Reply to author
Forward
0 new messages