-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
OpenPlaceGuide integration #215
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Few questions 🙂
regarding PR:
I am ok with merging this under a flag. To allow it without, i would need to see some value for world wide users. Maybe i just dont understand the concept well. 🙂 |
Thank you for asking :-)
Yes, discover is a router which currently works only by bounding polygons, and currently only Ethiopia is in there - if somebody spins up a new instance, they would need make a pull request to https://github.com/OpenPlaceGuide/discover-cf-worker/blob/e5f6f7cb0de271e1bc459dbdb265652d700b5547/index.js#L45 The data for addismap.com is currently not shared, but we will port this over to the public data repository. You can have a look at https://github.com/OpenPlaceGuide/data/tree/main/places/bandira for an example of the format.
Very good question - in this case, the data repository needs to be updated. We plan to have some monitoring on this which alerts the maintainer, that an OSM object went missing.
I believe that is not desirable to have in the OpenStreetMap database.
You are right, currently there is only value for users browsing Ethiopia :-) Another approach would be to be able to download the bounding polygons so less requests are needed. But actually I wanted to keep the API and the integration to 3rd party apps as simple as possible. Also it would not scale well. The API is hosted on Cloudflare workers and very slim. It does not query the OSM database and only evaluates the bounding polygons. |
Thanks, I understand everything well enough now :) ad merging) both flag or URL parameter seems fine. Feel free to edit the PR. |
I will wait for the shape file inclusion then :-) |
Hi, i included the countryCode resolution #327. You can query ethiopia by see in footer eg here: https://osmapp.org/node/237498687 |
Thanks, cool What exactly should I see in the footer? So shall I update the MR and query OPG for Ethiopia? |
In the footer of each FeaturePanel there is a country code in brackets near the coordinates. Yes, you may update this PR and query OPG for |
Thanks @zbycz for the hints. |
08a9069
to
9f7a30b
Compare
rebased & @zbycz ready for review |
f279a1e
to
8303054
Compare
* Fetch federation instance(s) for the current feature from OpenPlaceGuide discover * But only, if the country is list of supported countries * Add links to the specific detail pages, if available
@zbycz thank you :-) |
OpenPlaceGuide is meant to be a federated network of pages that provide more details for OpenStreetMap places.
There is the https://discover.openplaceguide.org/ service which provides links to those "instances"
Currently there is only AddisMap.com registered. Everyone could run a similar service for their area using https://github.com/OpenPlaceGuide/opg-pages
(Actually AddisMap.com currently runs on older proprietary code, but the idea is to port it's main features to opg-pages)
An OPG instance uses URLs of the format
$domain/$osmType/$osmId
which lead to a micropage of the place.Place place information can be enriched via different sources (currently the OPG database - a Git Repository) with all kind of information which does not directly belong to the OSM database.
This pull request implements the following:
You can test it by clicking on some features in Ethiopia
Example: /way/50833484
Known issues: When using the back button, an undefined variable error is thrown