Skip to content

Mapping nagold bike converter#377

Open
AbdullahiFatola wants to merge 3 commits into
ParkenDD:mainfrom
mobidata-bw:mapping-nagold-bike
Open

Mapping nagold bike converter#377
AbdullahiFatola wants to merge 3 commits into
ParkenDD:mainfrom
mobidata-bw:mapping-nagold-bike

Conversation

@AbdullahiFatola
Copy link
Copy Markdown
Collaborator

This PR creates mapping for the integration of bicycle parking data from the city of Nagold

AbdullahiFatola and others added 3 commits May 8, 2026 12:14
Updated field descriptions for 'Strasse', 'Lagebeschr', 'Beleuchtun', 'Ueberdachu', and 'Ueberwachu' to clarify their usage as parking facility names and descriptions.

Each bicycle parking installation is mapped to a static `ParkingSite` as follows.
Attributes which are set statically by the converter:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • purpose is always BIKE

Each bicycle parking installation is mapped to a static `ParkingSite` as follows.
Attributes which are set statically by the converter:

* `has_realtime_data` is always set to `False`
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

Please use always true/false instead of True/False.


Static values:

Each bicycle parking installation is mapped to a static `ParkingSite` as follows.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore parking installation with "Stellplatz": " " and "Anzahl_Bue": 0

|----------------------|--------------|
| Anlehnbügel | `STANDS` |
| Vorderradanschluss | `WALL_LOOPS` |
| None | `STANDS` |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed. This parking installation has "Anzahl_Bue": 0

| Lagebeschr | string | ? | description | Parking description (e.g. "Am Parkplatz vom Polizeirevier") |
| coordinates[1] | numeric | 1 | lat | GeoJSON geometry coordinates index 1 |
| coordinates[0] | numeric | 1 | lon | GeoJSON geometry coordinates index 0 |
| Stellplatz | [Stellplatz](#Stellplatz) | ? | type | See [Stellplatz](#Stellplatz) |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cardinality: 1

same for other attributes. "1" means data are always available, even if they are optional for ParkAPI.

| Anzahl_Lad | integer | ? | [restrictions](#ParkingSiteRestriction) | Map to `CHARGING` restrictions if > 0 |
| Beleuchtun | [Beleuchtung](#Beleuchtung) | ? | has_lighting | See [Beleuchtung](#Beleuchtung) |
| Ueberdachu | [Ueberdachung](#Ueberdachung) | ? | is_covered | See [Ueberdachung](#Ueberdachung) |
| Bike_and_R | [Bike_and_Ride](#Bike_and_Ride) | ? | park_and_ride_type | See [Bike_and_Ride](#Bike_and_Ride) |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use ParkAndRideType instead of Bike_and_Ride. Otherwise link does not work.

| Ueberwachu | [Ueberwachung](#Ueberwachung) | ? | supervision_type | See [Ueberwachung](#Ueberwachung) |
| Betreiber | string | ? | operator_name | Omit if blank |
| last_edi_1 | epoch ms | ? | static_data_updated_at | Convert epoch milliseconds to ISO 8601 |
| created_da | epoch ms | ? | static_data_updated_at | Fallback if `last_edi_1` is not available |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

last_edi_1 is always available, so we don't need created_da

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

Successfully merging this pull request may close these issues.

2 participants