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

manifest.json: include area, country_code #572

Merged
merged 7 commits into from
May 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 85 additions & 3 deletions gbfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ Field Name | REQUIRED | Type | Defines
`datasets[].versions` | Yes | Array<Object> | Contains one object for each of the available versions of a feed. The array MUST be sorted by increasing MAJOR and MINOR version number.
`datasets[].versions[].version` | Yes | String | The semantic version of the feed in the form `X.Y`.
`datasets[].versions[].url` | Yes | URL | URL of the corresponding `gbfs.json` endpoint.

`datasets[].area` | OPTIONAL | GeoJSON MultiPolygon | A GeoJSON MultiPolygon that describes the operating area. If `area` is supplied, then the record describes the general operating area of the system for the purpose of discovery. Geographic details of the system's operating restrictions must be explicitly specified using station locations and geofencing zones, where appropriate.
`datasets[].country_code` | OPTIONAL | Country Code | The ISO 3166-1 alpha-2 country code of the operating area. The field MUST NOT be specified if the operating area spans multiple countries.

**Example:**
```json
{
Expand All @@ -346,7 +348,45 @@ Field Name | REQUIRED | Type | Defines
"version":"3.0-RC",
"url":"https://berlin.example.com/gbfs/3/gbfs"
}
]
],
"area": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
13.10821,
52.58563
],
[
13.29743,
52.67046
],
[
13.48451,
52.6855
],
[
13.77993,
52.43458
],
[
13.65355,
52.33048
],
[
13.08165,
52.38793
],
[
13.10821,
52.58563
]
]
]
]
},
"country_code": "DE"
},
{
"system_id":"example_paris",
Expand All @@ -359,7 +399,49 @@ Field Name | REQUIRED | Type | Defines
"version":"3.0-RC",
"url":"https://paris.example.com/gbfs/3/gbfs"
}
]
],
"area": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
2.14306,
48.89971
],
[
2.36707,
48.99455
],
[
2.60219,
49.01987
],
[
2.615,
48.69025
],
[
2.52167,
48.6867
],
[
2.26838,
48.73275
],
[
2.13103,
48.80833
],
[
2.14306,
48.89971
]
]
]
]
},
"country_code": "FR"
}
]
}
Expand Down
Loading