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

Get a acces to "GBFS validator API" ? #95

Closed
agougoua opened this issue Apr 13, 2023 · 3 comments
Closed

Get a acces to "GBFS validator API" ? #95

agougoua opened this issue Apr 13, 2023 · 3 comments
Assignees

Comments

@agougoua
Copy link

Hello @PierrickP,
I'm Alban GOUGOUA, Data Analyst in the French Transport Regulatory Body (Autorité de régulation des Transports in french).

Within the framework of our control mission, we use a plateform of validation tools which contains validators of data mobility like MobilityData tools gtfs-validator for GTFS, DATA4PTTools for NeTEx, etc.
We are interested to integrate your validator for GBFS format in our plateform but it is not possible to use your tool via CLI. However, it is possible to request your validator via this URL : "https://gbfs-validator.netlify.app/.netlify/functions/validator". Just like for French National Acces Point, can we access to your API ?

Thanks in advance for your attention.

Best regards,
Alban GOUGOUA
Data Analyst in French Transport Regulatory Body (ART - Autorité de Régulaton des Transports)

@josee-sabourin
Copy link
Contributor

Hi Alban,

Thanks for reaching out! You can absolutely use the API, just note that it is not 100% production ready and may break. We also only have a limited number of requests available (125k/month). How often do you plan on requesting per day? We would ask that you include a user email in the header like so: User-Agent: <email_address>. There are no explicit permissions required on our end to give you access to the API, you should just be able to use it. Here is an example of how to use it with a curl command:

curl --location 'https://gbfs-validator.netlify.app/.netlify/functions/validator' \
--header 'accept: */*' \
--header 'Content-Type: application/json' \
--data '{
    "url": "https://dubai.publicbikesystem.net/customer/gbfs/v2/gbfs.json",
    "options": {
        "freefloating": false,
        "docked": false,
        "version": null,
        "auth": {
            "type": null,
            "basicAuth": {
                "user": null,
                "password": null
            },
            "bearerToken": {
                "token": null
            },
            "oauthClientCredentialsGrant": {
                "user": null,
                "password": null,
                "tokenUrl": null
            }
        }
    }
}'

Long term, we are planning to move the validator to something a more stable platform requiring API tokens in order to properly scale the tool.

@agougoua
Copy link
Author

Hello @josee-sabourin,
Thanks for your answer. About the number of requests, it is not great, less 1k/month and not all months in the year.
I will test your solution and I will come back to you. Thanks again.

Best regards,
Alban GOUGOUA
Data Analyst in French Transport Regulatory Body (ART - Autorité de Régulaton des Transports)

@agougoua
Copy link
Author

Hello @josee-sabourin,
I tested your solution and it works 🚀. Thanks again.
I close this issue.

Best regards,
Alban GOUGOUA
Data Analyst in French Transport Regulatory Body (ART - Autorité de Régulaton des Transports)

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

No branches or pull requests

3 participants