Create script that generates taginfo.json files #10289

Open
soshial wants to merge 1 commit from soshial/generate-taginfo-json into master
soshial commented 2025-02-19 09:43:22 +00:00 (Migrated from github.com)

This PR creates taginfo.json for each style needed to eventually show Organic Maps supported features in the TagInfo list of OSM projects.

This PR replaces organicmaps/organicmaps#9058.

This PR creates `taginfo.json` for each style needed to eventually show Organic Maps supported features in the [TagInfo list of OSM projects](https://taginfo.openstreetmap.org/projects#projects). This PR replaces https://git.omaps.dev/organicmaps/organicmaps/pulls/9058.
RedAuburn reviewed 2025-02-19 16:23:03 +00:00
RedAuburn left a comment
Member

Neat!
a few things:

  1. Why's it in android/scripts? it'd be better to have it in tools IMO. (and run it as part of one of the generation scripts?)
  2. It doesn't handle metadata types like outdoor_seating=yes (defined in the code, not in the styles). IMO it's fine for now, and worth merging anyway as long as we open a new issue for it.
  3. there's a case where metadata is rendered (drinking_water=no), but it's converted from no to not in generator. It probably doesn't matter too much as the proper solution is to fix the generator, but maybe hard-coding an exception would be fine for now
Neat! a few things: 1. Why's it in `android/scripts`? it'd be better to have it in `tools` IMO. (and run it as part of one of the generation scripts?) 2. It doesn't handle metadata types like `outdoor_seating=yes` (defined in the code, not in the styles). IMO it's fine for now, and worth merging anyway as long as we open a new issue for it. 3. there's a case where metadata is rendered (`drinking_water=no`), but it's converted from `no` to `not` in generator. It probably doesn't matter too much as the proper solution is to fix the generator, but maybe hard-coding an exception would be fine for now

might need to hardcode removing this? IIRC it's converted to not because the generator can't handle no properly yet.

might need to hardcode removing this? IIRC it's converted to `not` because the generator can't handle `no` properly yet.
soshial (Migrated from github.com) reviewed 2025-02-20 15:34:04 +00:00
soshial (Migrated from github.com) commented 2025-02-20 15:34:04 +00:00

Thanks for reviewing the PR, @RedAuburn! I have improved the code a lot and now each JSON contain 6000+ lines and without duplicates.

What is this generator and why cannot it output "no" values instead of "not"?

Thanks for reviewing the PR, @RedAuburn! I have improved the code a lot and now each JSON contain 6000+ lines and without duplicates. What is this generator and why cannot it output "no" values instead of "not"?
This repo is archived. You cannot comment on pull requests.
No reviewers
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#10289
No description provided.