Git Product home page Git Product logo

nicolas-raoul / wikivoyage2osm Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 6.99 MB

Extract POI information from Wikivoyage. This project has been superseded by https://github.com/baturin/wikivoyage-listings

Home Page: https://github.com/baturin/wikivoyage-listings

License: GNU General Public License v3.0

Shell 100.00%
opendata travel attractions activities restaurants shops hotels database wikivoyage openstreetmap

wikivoyage2osm's Introduction

This project has been superseded by https://github.com/baturin/wikivoyage-listings

The only thing that might still be useful here is extraction of legations (embassies and consulates) which is currently not implemented at the URL above.

wikivoyage2osm's People

Contributors

nicolas-raoul avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wikivoyage2osm's Issues

Generate RDF/XML

Not parsed well: Image with pipe in directions field

Some directions contain an icon, for instance:

directions=[[Image:BKV_villamos_symbol.svg|16px]]: 18, 41, 47 to stop 'Etele út / Fehérvári út'

This breaks the regexp:

* {{see
| name=Museum of GAMMA| alt=GAMMA Múzeum (A GAMMA Finommechanikai és Optikai Művek történetének emlékei) | url= | email= | address=XI.Petzvál József utca, 52? | lat=47.46442 | long=19.0413 | directions=[[Image:BKV_villamos_symbol.svg|16px]]: 18, 41, 47 to stop 'Etele út / Fehérvári út'| phone= | fax= | hours= | price= | content=GAMMA was a Precision Mechanics and Optics Works. }}

becomes:
"Budapest/Buda";"see";"Museum of GAMMA";"GAMMA Múzeum (A GAMMA Finommechanikai és Optikai Művek történetének emlékei)";"XI.Petzvál József utca, 52?";"[[Image:BKV_villamos_symbol.svg";"";"";"";"";"";"";"";"";"";"";"47.46442";"19.0413";"GAMMA was a Precision Mechanics and Optics Works."

Parse correctly the "Multiple Locations" construct

Example:

* {{eat
| name=Harold's Chicken Shack | url= | email=
| address= | lat= | long= | directions=
| phone= | tollfree= | fax=
| hours= | price=$2–5
| content=The great South Side fried chicken chain is cheap, usually a little dirty, and always delicious. Harold's was born right near here on 47th street, by the way, in north [[Chicago/Hyde Park|Kenwood]], although the original location (at Greenwood) closed long ago.
}}
:* {{eat
| name= | url= | email=
| address=307 E 55th St | lat= | long= | directions=
| phone=+1 773 373-9016 | tollfree= | fax=
| hours=10AM-3AM daily | price=
| content=
}}
:* {{eat
| name= | url= | email=
| address=108 E 47th St | lat= | long= | directions=
| phone=+1 773 285-8362 | tollfree= | fax=
| hours=Su-Th 11AM-3AM, F Sa 11AM-4AM | price=
| content=
}}

Notice the : character before each sub-location.
Most parameters (except address, latitude, longitude, image) should be inherited from the first one. Also the url if not overridden.

Details: https://en.wikivoyage.org/wiki/Wikivoyage:Listings#Multiple_locations

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.