Giter Club home page Giter Club logo

streetcomplete-taginfo-categorize's Introduction

Prerequisites

  • make, perl, JSON perl module, json_reformat (on Debian-based system: apt-get install make perl libjson-perl yajl-tools)
  • up-to-date https://github.com/openstreetmap/id-tagging-schema in ../id-tagging-schema

Usage instructions

Those scripts generate KEYS_THAT_SHOULD_BE_REMOVED_WHEN_SHOP_IS_REPLACED for the StreetComplete project.

make update should be run periodically, to find new keys with usage > 0.01% and add them to ## TODO ## section at the bottom of keys.txt file.

User should then investigate and move them from there to correct section like ### KEYS TO REMOVE ### or ### KEYS TO KEEP ### sections of keys.txt.

Running make again will then generate sc_to_remove.txt with kotlin code to copy/paste to https://github.com/streetcomplete/StreetComplete/blob/master/app/src/main/java/de/westnordost/streetcomplete/osm/Shop.kt#L6 It is generated only from data in ### KEYS TO REMOVE ### section.

Notes on keys.txt format:

  • each line can contain a regex (or normal text) representing key (in-line comments are possible too, as everything after // or # is ignored
  • blank lines in ### KEYS TO REMOVE ### section will become newlines in sc_to_remove.txt
  • lines beginning with // in ### KEYS TO REMOVE ### section will be copied to sc_to_remove.txt
  • lines beginning with # are ignored completely

when isShopExpressionFragment() changes

If isShopExpressionFragment() in OsmTaggings.kt changes, then FETCH_KEYS / FETCH_TAGS in Makefile should be updated too, and scripts re-run (i.e. make update + make) in order to generate new KEYS_THAT_SHOULD_BE_REMOVED_WHEN_SHOP_IS_REPLACED to put in OsmTaggings.kt.

streetcomplete-taginfo-categorize's People

Contributors

floedelmann avatar matkoniecz avatar mnalis avatar rugk avatar smoothefiets avatar westnordost avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

streetcomplete-taginfo-categorize's Issues

fhrs

When a POI with fhrs:id closes it should be removed, it's definitely about the shop/restaurant and not the building or address.

All other fhrs:* ( fhrs:local_authority_id fhrs:authority fhrs:rating fhrs:rating_date fhrs:hygiene fhrs:structural fhrs:confidence_management ) are basically deprecated and duplicate unnecessary data. They should also be removed when a POI closes, most of the time they should be removed even when while it's open.

Note that some are tricky

For example inscription

If someone made a common bad choice and mapped shop and building as one object then this tag can refer to something on building, unrelated to the shop.

In principle, support for such car could be implemented (for example asking user is given inscription still present) but it works be nasty to implement.

And for GNIS id it is even worse as there is no direct human readable form (and putting GNIS database into SC would be silly)

isShopExpressionFragment updated

I updated isShopExpressionFragment, it now includes anything that could be in a (non-purpose-built) building, i.e. also any office, craft etc.

Right very now, it is still on the shops-overlay branch but I will merge it to master today.

Not sure what I need to do here, I'd rather leave this up to you.

Consider editing repository setings to remove "Packages" section

"Packages No packages published" is displayed right now, fortunately this pointless section can be removed.

Edit repo page config to remove it (cog next to the description).

I am not making a PR as it is defined in proprietary github settings, not in a git repository - and I have no rights to modify repo settings.

Peek 2020-10-25 09-10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.