Skip to content

Commit

Permalink
Add data folder for stuff that is manually arranged and not easily pa…
Browse files Browse the repository at this point in the history
…rseable
  • Loading branch information
HellMapGoesCoding committed May 14, 2023
1 parent 50262a4 commit 4997a1c
Show file tree
Hide file tree
Showing 2 changed files with 253 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Osmalyzer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ private static void ParseCommonNames()
new HasTag("name")
);

const string nsiTagsFileName = @"NSI tags.txt"; // from https://nsi.guide/?t=brands
string nsiTagsFileName = @"NSI tags.txt"; // from https://nsi.guide/?t=brands

if (!File.Exists(nsiTagsFileName))
nsiTagsFileName = @"..\..\..\data\" + nsiTagsFileName; // "exit" Osmalyzer\bin\Debug folder and grab it from root data\

string[] nsiRawTags = File.ReadAllLines(nsiTagsFileName);

List<(string, List<string>)> nsiTags = nsiRawTags.Select(t =>
Expand All @@ -51,6 +54,7 @@ private static void ParseCommonNames()
return (t.Substring(0, i), t.Substring(i + 1).Split(';').ToList());
}).ToList();
// todo: retrieve automatically from NSI repo or wherever they keep these
// todo: would need to manually specify exception/grouping if parsing

List<(int count, string line)> reportEntries = new List<(int, string)>();

Expand Down
248 changes: 248 additions & 0 deletions data/NSI tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,248 @@
amenity animal_boarding
amenity animal_shelter
amenity atm
amenity bank
amenity bar
amenity bicycle_rental
amenity bureau_de_change
amenity cafe
amenity car_rental
amenity car_sharing
amenity car_wash
amenity casino
amenity charging_station
amenity childcare
amenity cinema
amenity clinic
amenity college
amenity community_centre
amenity dentist
amenity doctors
amenity driving_school
amenity fast_food
amenity food_sharing
amenity fuel
amenity gambling
amenity hospital
amenity ice_cream
amenity internet_cafe
amenity karaoke_box
amenity kindergarten
amenity language_school
amenity library
amenity money_transfer
amenity motorcycle_rental
amenity music_school
amenity parcel_locker
amenity payment_centre
amenity payment_terminal
amenity pharmacy
amenity photo_booth
amenity post_depot
amenity post_office
amenity prep_school
amenity pub
amenity public_bookcase
amenity recycling
amenity restaurant
amenity school
amenity social_centre
amenity social_facility
amenity telephone
amenity training
amenity trolley_bay
amenity university
amenity vehicle_inspection
amenity vending_machine
amenity veterinary
amenity waste_basket
amenity weighbridge
club scout
craft carpenter
craft cleaning
craft electronics_repair
craft plumber
craft signmaker
craft window_construction
emergency ambulance_station
healthcare alternative
healthcare audiologist
healthcare blood_donation
healthcare counselling
healthcare laboratory
healthcare physiotherapist
healthcare sample_collection
highway services
landuse residential
leisure adult_gaming_centre
leisure amusement_arcade
leisure bowling_alley
leisure dance
leisure dog_park
leisure escape_game
leisure fitness_centre
leisure fitness_station
leisure indoor_play
leisure miniature_golf
leisure playground
leisure sports_centre
leisure trampoline_park
office association
office bail_bond_agent
office consulting
office coworking
office employment_agency
office estate_agent
office financial
office financial_advisor
office insurance
office moving_company
office political_party
office security
office tax_advisor
office telecommunication
office union
shop agrarian
shop alcohol
shop anime
shop appliance
shop art
shop baby_goods
shop bag
shop bakery
shop bathroom_furnishing
shop beauty
shop bed
shop beverages
shop bicycle
shop boat
shop bookmaker
shop books
shop butcher
shop camera
shop candles
shop cannabis
shop car
shop car_parts
shop car_repair
shop carpet
shop catalogue
shop charity
shop chemist
shop chocolate
shop clothes
shop coffee
shop computer
shop confectionery
shop convenience;kiosk;supermarket
shop copyshop
shop cosmetics
shop country_store
shop craft
shop curtain
shop dairy
shop deli
shop department_store
shop doityourself
shop doors
shop dry_cleaning
shop e-cigarette
shop electrical
shop electronics
shop erotic
shop fabric
shop fashion_accessories
shop fishing
shop flooring
shop florist
shop frame
shop frozen_food
shop funeral_directors
shop furniture
shop games
shop garden_centre
shop gas
shop general
shop gift
shop gold_buyer
shop greengrocer
shop hairdresser
shop hairdresser_supply
shop hardware
shop health_food
shop hearing_aids
shop herbalist
shop hifi
shop household_linen
shop houseware
shop interior_decoration
shop jewelry
shop kitchen
shop laundry
shop leather
shop lighting
shop locksmith
shop lottery
shop mall
shop massage
shop medical_supply
shop mobile_phone
shop model
shop money_lender
shop motorcycle
shop motorcycle_repair
shop music
shop musical_instrument
shop newsagent
shop nutrition_supplements
shop nuts
shop optician
shop outdoor
shop outpost
shop paint
shop party
shop pastry
shop pawnbroker
shop perfumery
shop pet
shop photo
shop plant_hire
shop pottery
shop printer_ink
shop pyrotechnics
shop rental
shop repair
shop seafood
shop second_hand
shop shoes
shop spices
shop sports
shop stationery
shop storage_rental
shop swimming_pool
shop tailor
shop tattoo
shop tea
shop telecommunication
shop ticket
shop tiles
shop tobacco
shop tool_hire
shop toys
shop trade
shop travel_agency
shop truck_repair
shop tyres
shop vacuum_cleaner
shop variety_store
shop video
shop video_games
shop watches
shop wholesale
shop window_blind
shop wine
tourism caravan_site
tourism hostel
tourism hotel
tourism information
tourism motel

2 comments on commit 4997a1c

@i-ky
Copy link
Contributor

@i-ky i-ky commented on 4997a1c May 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess data/NSI tags.txt is a TSV file. Maybe rename it to .tsv to help GitHub (and editors) recognize it as TSV?

@HellMapGoesCoding
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, 6773593.

Please sign in to comment.