baturin / wikivoyage-listings

Data extracted from Wikivoyage, the free travel guide at http://wikivoyage.org. Leverage Wikivoyage listings on your smartphone, or in your own mashups.
http://wvpoi.batalex.ru/
Other
48 stars 27 forks source link

Add Italian #50

Open nicolas-raoul opened 6 years ago

nicolas-raoul commented 6 years ago

The Italian Wikivoyage has expressed interest in getting parsed by us.

I believe it will not be very difficult, copying English.java or German.java will probably work. There might be a few things to adjust.

The first thing to do would be to find a listing on the Italian Wikivoyage and compare it to listings on other Wikivoyages to see which one is the closest.

nsaiisasidhar commented 6 years ago

Hi, Can you please let me know if the purpose of finding a Italian listing closest to English (or) German listing is for mapping the POI Types.

nicolas-raoul commented 6 years ago

@nsaiisasidhar : No, no mapping is needed.

Adding Italian should be rather similar to this: https://github.com/baturin/wikivoyage-listings/commit/bae618de6533b27ee27d1d4cc18d5dbc9cd70aa7

nsaiisasidhar commented 6 years ago

@nicolas-raoul Can you please let me know how to get sample-article-it.wikicode for Italian.

nicolas-raoul commented 6 years ago

As an example, here is how Spanish got added recently: https://github.com/baturin/wikivoyage-listings/pull/59/commits/10c6f4096168e423d810ea435d9a784d9f85b25b (only the 2 Java files, ignore the .bat file). As you can see it is not too difficult even for a beginner Java developer.

nicolas-raoul commented 6 years ago

When I run it, here is the CSV output:

article,type,title,alt,wikidata,wikipedia,address,directions,phone,tollFree,email,fax,url,hours,checkIn,checkOut,image,price,latitude,longitude,wifi,accessibility,lastEdit,description
Sur (Oman),other,Oman National Transport Company,ONTC,,,,near Sur Souq,+968 25 540019,,info@ontcoman.com,,http://www.ontcoman.com/,,,,,,22.568252,59.525001,,,,Ha bus giornalieri da e per Mascate (4 ore e 15 minuti) lungo la strada R23 via Ibra.

Only 1 line... @nsaiisasidhar Would you know what is the problem?