It works, and it's pretty!

This commit is contained in:
Simon Brooke 2020-02-25 12:06:13 +00:00
parent 67bbfe36cd
commit 47ca5b17ba
No known key found for this signature in database
GPG key ID: A7A4F18D1D4DF987
408 changed files with 118 additions and 177 deletions

View file

@ -2,10 +2,6 @@
An even more ultra-lightweight tool to show comma-separated value data on a map.
## WARNING
Doesn't work yet.
## Overview
This is a third iteration of GeoCSV. The [original](https://github.com/simon-brooke/geocsv) was written quickly in Clojure and ClojureScript, with CSV parsing done server side and React (via [re-frame](https://github.com/day8/re-frame)) driving the client side. That's my comfort zone; but it had the benefit that my customer wanted to pull data from Google Sheets, which you can't do from client side (or at least I don't know how to) because of cross-site scripting protections.

View file

@ -1,3 +1,4 @@
Country,Name,Latitude,Longitude,CountryCode,Continent,Category
Somaliland,Hargeisa,9.55,44.05,NULL,Africa,
Western Sahara,El-Aaiún,27.153611,-13.203333,EH,Africa,EH
Algeria,Algiers,36.75,3.05,DZ,Africa,DZ

1 Somaliland Country Hargeisa Name 9.55 Latitude 44.05 Longitude NULL CountryCode Africa Continent Category
1 Country Name Latitude Longitude CountryCode Continent Category
2 Somaliland Somaliland Hargeisa Hargeisa 9.55 9.55 44.05 44.05 NULL NULL Africa
3 Western Sahara Western Sahara El-Aaiún El-Aaiún 27.153611 27.153611 -13.203333 -13.203333 EH EH Africa EH EH
4 Algeria Algeria Algiers Algiers 36.75 36.75 3.05 3.05 DZ DZ Africa DZ DZ

View file

@ -1,3 +1,4 @@
Country,Name,Latitude,Longitude,CountryCode,Continent,Category
Saint Martin,Marigot,18.0731,-63.0822,MF,North America,MF
Anguilla,The Valley,18.2166666666667,-63.05,AI,North America,AI
Antigua and Barbuda,Saint John's,17.1166666666667,-61.85,AG,North America,AG

1 Saint Martin Country Marigot Name 18.0731 Latitude -63.0822 Longitude MF CountryCode North America Continent MF Category
1 Country Name Latitude Longitude CountryCode Continent Category
2 Saint Martin Saint Martin Marigot Marigot 18.0731 18.0731 -63.0822 -63.0822 MF MF North America North America MF MF
3 Anguilla Anguilla The Valley The Valley 18.2166666666667 18.2166666666667 -63.05 -63.05 AI AI North America North America AI AI
4 Antigua and Barbuda Antigua and Barbuda Saint John's Saint John's 17.1166666666667 17.1166666666667 -61.85 -61.85 AG AG North America North America AG AG

View file

@ -1,3 +1,4 @@
Country,Name,Latitude,Longitude,CountryCode,Continent,Category
Palestine,Jerusalem,31.7666666666667,35.233333,PS,Asia,PS
Afghanistan,Kabul,34.5166666666667,69.183333,AF,Asia,AF
Bahrain,Manama,26.2333333333333,50.566667,BH,Asia,BH

1 Palestine Country Jerusalem Name 31.7666666666667 Latitude 35.233333 Longitude PS CountryCode Asia Continent PS Category
1 Country Name Latitude Longitude CountryCode Continent Category
2 Palestine Palestine Jerusalem Jerusalem 31.7666666666667 31.7666666666667 35.233333 35.233333 PS PS Asia PS PS
3 Afghanistan Afghanistan Kabul Kabul 34.5166666666667 34.5166666666667 69.183333 69.183333 AF AF Asia AF AF
4 Bahrain Bahrain Manama Manama 26.2333333333333 26.2333333333333 50.566667 50.566667 BH BH Asia BH BH

View file

@ -1,3 +1,4 @@
Country,Name,Latitude,Longitude,CountryCode,Continent,Category
Aland Islands,Mariehamn,60.116667,19.9,AX,Europe,AX
Albania,Tirana,41.3166666666667,19.816667,AL,Europe,AL
Andorra,Andorra la Vella,42.5,1.516667,AD,Europe,AD

1 Aland Islands Country Mariehamn Name 60.116667 Latitude 19.9 Longitude AX CountryCode Europe Continent AX Category
1 Country Name Latitude Longitude CountryCode Continent Category
2 Aland Islands Aland Islands Mariehamn Mariehamn 60.116667 60.116667 19.9 19.9 AX AX Europe AX AX
3 Albania Albania Tirana Tirana 41.3166666666667 41.3166666666667 19.816667 19.816667 AL AL Europe AL AL
4 Andorra Andorra Andorra la Vella Andorra la Vella 42.5 42.5 1.516667 1.516667 AD AD Europe AD AD

View file

@ -1,59 +0,0 @@
"Country,Name,Latitude,Longitude,CountryCode,Continent\n" +
"Somaliland,Hargeisa,9.55,44.050000,NULL,Africa\n" +
"Western Sahara,El-Aaiún,27.153611,-13.203333,EH,Africa\n" +
"Algeria,Algiers,36.75,3.050000,DZ,Africa\n" +
"Angola,Luanda,-8.833333333333334,13.216667,AO,Africa\n" +
"Benin,Porto-Novo,6.483333333333333,2.616667,BJ,Africa\n" +
"Botswana,Gaborone,-24.633333333333333,25.900000,BW,Africa\n" +
"Burkina Faso,Ouagadougou,12.366666666666667,-1.516667,BF,Africa\n" +
"Burundi,Bujumbura,-3.3666666666666667,29.350000,BI,Africa\n" +
"Cameroon,Yaounde,3.8666666666666667,11.516667,CM,Africa\n" +
"Cape Verde,Praia,14.916666666666666,-23.516667,CV,Africa\n" +
"Central African Republic,Bangui,4.366666666666666,18.583333,CF,Africa\n" +
"Chad,N'Djamena,12.1,15.033333,TD,Africa\n" +
"Comoros,Moroni,-11.7,43.233333,KM,Africa\n" +
"Democratic Republic of the Congo,Kinshasa,-4.316666666666666,15.300000,CD,Africa\n" +
"Republic of Congo,Brazzaville,-4.25,15.283333,CG,Africa\n" +
"Cote d'Ivoire,Yamoussoukro,6.816666666666666,-5.266667,CI,Africa\n" +
"Djibouti,Djibouti,11.583333333333334,43.150000,DJ,Africa\n" +
"Egypt,Cairo,30.05,31.250000,EG,Africa\n" +
"Equatorial Guinea,Malabo,3.75,8.783333,GQ,Africa\n" +
"Eritrea,Asmara,15.333333333333334,38.933333,ER,Africa\n" +
"Ethiopia,Addis Ababa,9.033333333333333,38.700000,ET,Africa\n" +
"Gabon,Libreville,0.38333333333333336,9.450000,GA,Africa\n" +
"The Gambia,Banjul,13.45,-16.566667,GM,Africa\n" +
"Ghana,Accra,5.55,-0.216667,GH,Africa\n" +
"Guinea,Conakry,9.5,-13.700000,GN,Africa\n" +
"Guinea-Bissau,Bissau,11.85,-15.583333,GW,Africa\n" +
"Kenya,Nairobi,-1.2833333333333332,36.816667,KE,Africa\n" +
"Lesotho,Maseru,-29.316666666666666,27.483333,LS,Africa\n" +
"Liberia,Monrovia,6.3,-10.800000,LR,Africa\n" +
"Libya,Tripoli,32.88333333333333,13.166667,LY,Africa\n" +
"Madagascar,Antananarivo,-18.916666666666668,47.516667,MG,Africa\n" +
"Malawi,Lilongwe,-13.966666666666667,33.783333,MW,Africa\n" +
"Mali,Bamako,12.65,-8.000000,ML,Africa\n" +
"Mauritania,Nouakchott,18.066666666666666,-15.966667,MR,Africa\n" +
"Mauritius,Port Louis,-20.15,57.483333,MU,Africa\n" +
"Morocco,Rabat,34.016666666666666,-6.816667,MA,Africa\n" +
"Mozambique,Maputo,-25.95,32.583333,MZ,Africa\n" +
"Namibia,Windhoek,-22.566666666666666,17.083333,NA,Africa\n" +
"Niger,Niamey,13.516666666666667,2.116667,NE,Africa\n" +
"Nigeria,Abuja,9.083333333333334,7.533333,NG,Africa\n" +
"Rwanda,Kigali,-1.95,30.050000,RW,Africa\n" +
"Saint Helena,Jamestown,-15.933333333333334,-5.716667,SH,Africa\n" +
"Sao Tome and Principe,Sao Tome,0.3333333333333333,6.733333,ST,Africa\n" +
"Senegal,Dakar,14.733333333333333,-17.633333,SN,Africa\n" +
"Seychelles,Victoria,-4.616666666666667,55.450000,SC,Africa\n" +
"Sierra Leone,Freetown,8.483333333333333,-13.233333,SL,Africa\n" +
"Somalia,Mogadishu,2.066666666666667,45.333333,SO,Africa\n" +
"South Africa,Pretoria,-25.7,28.216667,ZA,Africa\n" +
"South Sudan,Juba,4.85,31.616667,SS,Africa\n" +
"Sudan,Khartoum,15.6,32.533333,SD,Africa\n" +
"Swaziland,Mbabane,-26.316666666666666,31.133333,SZ,Africa\n" +
"Tanzania,Dar es Salaam,-6.8,39.283333,TZ,Africa\n" +
"Togo,Lome,6.116666666666666,1.216667,TG,Africa\n" +
"Tunisia,Tunis,36.8,10.183333,TN,Africa\n" +
"Uganda,Kampala,0.31666666666666665,32.550000,UG,Africa\n" +
"Zambia,Lusaka,-15.416666666666666,28.283333,ZM,Africa\n" +
"Zimbabwe,Harare,-17.816666666666666,31.033333,ZW,Africa\n" +
"British Indian Ocean Territory,Diego Garcia,-7.3,72.400000,IO,Africa\n" +

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Some files were not shown because too many files have changed in this diff Show more