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

geocode most of the articles #215

Open
guaka opened this issue Nov 22, 2024 · 2 comments
Open

geocode most of the articles #215

guaka opened this issue Nov 22, 2024 · 2 comments
Assignees
Labels

Comments

@guaka
Copy link
Contributor

guaka commented Nov 22, 2024

how

  • pywikibot
  • Google Maps Geocoding API? @kenflannery? or something else?
@guaka
Copy link
Contributor Author

guaka commented Nov 22, 2024

Simplest way to get started: go through all articles, and add e.g. {{missing-geo}} template to the ones that don't have geo data now

If there's no data but there is an {{IsIn}}, the script can try to find the location this way.

@guaka guaka self-assigned this Nov 22, 2024
@guaka
Copy link
Contributor Author

guaka commented Nov 22, 2024

wrote some code https://github.com/Hitchwiki/hwpybot

a lot of articles have latlng, pushing these onto relay.trustroots.org, which can be displayed in the dev version of the nostroots app now

image

remarks:

  • looks like some articles have an incorrect latlng, quite easy to spot now
  • postpone the attempt at automatically geocoding articles

nice to try next:

  • use plus codes to e.g. display countries in a more sensible way in the nostroots app
  • add {{geo-missing}} template to articles that don't have latlng nor {{IsIn}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant