OneBusAway / onebusaway-multiregion-support

Support files for multi-region support in OneBusAway
Apache License 2.0
3 stars 5 forks source link

Fix #11 - Add Open311 endpoints for each region #12

Closed cagryInside closed 8 years ago

cagryInside commented 8 years ago

Open311 endpoints added to OBA Region API.

"open311Servers": [

{

    "juridisctionId": null,
    "apiKey": "937033cad3054ec58a1a8156dcdd6ad8a416af2f",
    "baseUrl": "http://test.seeclickfix.com/open311/v2/"

},

    {
        "juridisctionId": null,
        "apiKey": "937033cad3054ec58a1a8156dcdd6ad8a416af2f",
        "baseUrl": "http://www.publicstuff.com/api/open311/"
    }

],
barbeau commented 8 years ago

@cagryInside Sorry, I forgot to ask you to add the --pretty command line parameter, which will add newline characters and make it easier to read the JSON and XML. So, running the script looks like: python update_regions.py --pretty

Could you do this and replace the JSON and XML files in this PR with the pretty files?

cagryInside commented 8 years ago

@barbeau I just update the PR.

barbeau commented 8 years ago

Thanks @cagryInside!

barbeau commented 8 years ago

@cagryInside I also forgot to mention that if you want to test with a CSV file (for example, if you download the Google Spreadsheet as a CSV), you can use the following command to use the local file as input, instead of the Google Doc: python update_regions.py --input-file regions-test.csv --pretty

barbeau commented 8 years ago

Thanks @cagryInside, looks good to me!

barbeau commented 8 years ago

To test OBA Android with the staging files, you can change donottranslate.xml string regions_api_url to: https://raw.githubusercontent.com/OneBusAway/onebusaway-multiregion-support/master/staging/regions-v3.json

cagryInside commented 8 years ago

To test OBA Android with the staging files, you can change donottranslate.xml string regions_api_url to: https://raw.githubusercontent.com/OneBusAway/onebusaway-multiregion-support/master/staging/regions-v3.json

@barbeau That's useful, thanks.

barbeau commented 8 years ago

I also just added all this documentation to the README: https://github.com/OneBusAway/onebusaway-multiregion-support