-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize geo coordinate Place properties
Similar to what we do for string-based address properties, move those to the geo property instead. Allows importing from osmcal.org for example (once thomersch/openstreetmap-calendar#158 is deployed there at least to fix the missing @type for the location property).
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"@context": "https://schema.org", | ||
"@type": "Event", | ||
"endDate": "2024-03-11T21:30:00+08:00", | ||
"eventStatus": "https://schema.org/EventScheduled", | ||
"location": { | ||
"@type": "Place", | ||
"address": "MozSpace Taipei, 94, Section 1, Bade Road, Zhongzheng District, Huashan, Taipei, Taiwan", | ||
"latitude": 25.044068, | ||
"longitude": 121.532182 | ||
}, | ||
"modifiedTime": "2024-03-03T00:00:00", | ||
"name": "OpenStreetMap x Wikidata Taipei #62", | ||
"startDate": "2024-03-11T19:30:00+08:00" | ||
} | ||
] | ||
|
21 changes: 21 additions & 0 deletions
21
autotests/jsonlddata/place-coordinate-propagation.out.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[ | ||
{ | ||
"@context": "http://schema.org", | ||
"@type": "Event", | ||
"endDate": "2024-03-11T21:30:00+08:00", | ||
"location": { | ||
"@type": "Place", | ||
"address": { | ||
"@type": "PostalAddress", | ||
"streetAddress": "MozSpace Taipei, 94, Section 1, Bade Road, Zhongzheng District, Huashan, Taipei, Taiwan" | ||
}, | ||
"geo": { | ||
"@type": "GeoCoordinates", | ||
"latitude": 25.0440673828125, | ||
"longitude": 25.0440673828125 | ||
} | ||
}, | ||
"name": "OpenStreetMap x Wikidata Taipei #62", | ||
"startDate": "2024-03-11T19:30:00+08:00" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters