Dataset Viewer
Auto-converted to Parquet
Search is not available for this dataset
0
int64
1
string
2
string
3
string
4
float64
5
float64
6
string
7
string
8
string
9
string
10
string
11
string
12
string
13
string
14
int64
15
float64
16
int64
17
string
18
string
2,994,701
Roc Meler
Roc Meler
Roc Mele,Roc Meler,Roc Mélé
42.58765
1.7418
T
PK
AD
AD,FR
02
null
null
null
0
2,811
2,348
Europe/Andorra
2023-10-03
3,017,832
Pic de les Abelletes
Pic de les Abelletes
Pic de la Font-Negre,Pic de la Font-Nègre,Pic de les Abelletes
42.52535
1.73343
T
PK
AD
FR
A9
66
663
66146
0
null
2,411
Europe/Andorra
2014-11-05
3,017,833
Estany de les Abelletes
Estany de les Abelletes
Estany de les Abelletes,Etang de Font-Negre,Étang de Font-Nègre
42.52915
1.73362
H
LK
AD
FR
A9
null
null
null
0
null
2,260
Europe/Andorra
2014-11-05
3,023,203
Port Vieux de la Coume d’Ose
Port Vieux de la Coume d'Ose
Port Vieux de Coume d'Ose,Port Vieux de Coume d’Ose,Port Vieux de la Coume d'Ose,Port Vieux de la Coume d’Ose
42.62568
1.61823
T
PASS
AD
null
00
null
null
null
0
null
2,687
Europe/Andorra
2014-11-05
3,029,315
Port de la Cabanette
Port de la Cabanette
Port de la Cabanette,Porteille de la Cabanette
42.6
1.73333
T
PASS
AD
AD,FR
B3
09
091
09139
0
null
2,379
Europe/Andorra
2014-11-05
3,034,945
Roc de Port Dret
Roc de Port Dret
null
42.60288
1.45736
T
PK
AD
AD,FR
04
null
null
null
0
2,735
2,650
Europe/Andorra
2023-12-24
3,038,814
Costa de Xurius
Costa de Xurius
null
42.50692
1.47569
T
SLP
AD
null
07
null
null
null
0
null
1,839
Europe/Andorra
2015-03-08
3,038,815
Font de la Xona
Font de la Xona
null
42.55003
1.44986
H
SPNG
AD
null
04
null
null
null
0
null
1,976
Europe/Andorra
2010-01-11
3,038,816
Xixerella
Xixerella
null
42.55327
1.48736
P
PPL
AD
null
04
null
null
null
0
null
1,417
Europe/Andorra
2009-04-24
3,038,818
Riu Xic
Riu Xic
null
42.57165
1.67554
H
STM
AD
null
02
null
null
null
0
null
1,851
Europe/Andorra
2014-12-03
3,038,819
Pas del Xic
Pas del Xic
null
42.49766
1.57597
R
TRL
AD
null
08
null
null
null
0
null
1,669
Europe/Andorra
2015-05-06
3,038,820
Roc del Xeig
Roc del Xeig
null
42.56068
1.4898
T
RK
AD
null
04
null
null
null
0
null
1,643
Europe/Andorra
2015-05-06
3,038,821
Collada del Xeig
Collada del Xeig
null
42.57512
1.49009
T
PK
AD
null
04
null
null
null
0
null
1,857
Europe/Andorra
2014-11-05
3,038,822
Fonts Vives
Fonts Vives
null
42.49829
1.56428
H
SPNG
AD
null
08
null
null
null
0
null
1,540
Europe/Andorra
2015-05-06
3,038,823
Roc de Vista
Roc de Vista
null
42.49922
1.48118
T
RK
AD
null
07
null
null
null
0
null
1,564
Europe/Andorra
2015-03-08
3,038,824
Obaga de Vista
Obaga de Vista
null
42.47935
1.44621
T
SLP
AD
null
06
null
null
null
0
null
1,749
Europe/Andorra
2015-03-08
3,038,825
Coll de Vista
Coll de Vista
null
42.47611
1.60578
T
GAP
AD
null
06
null
null
null
0
null
2,335
Europe/Andorra
2015-04-08
3,038,826
Coll de Vista
Coll de Vista
Coll de Vista
42.47552
1.44173
T
PASS
AD
AD,ES
00
null
null
null
0
null
1,967
Europe/Andorra
2014-11-05
3,038,827
Visanseny
Visanseny
Visanceny,Visanseny
42.57488
1.61616
L
LCTY
AD
null
02
null
null
null
0
null
1,706
Europe/Andorra
2014-12-03
3,038,828
Roc de la Vinya
Roc de la Vinya
null
42.52776
1.56446
T
RK
AD
null
03
null
null
null
0
null
1,260
Europe/Andorra
2015-02-06
3,038,829
Canal de la Vinya
Canal de la Vinya
null
42.52232
1.52319
H
STM
AD
null
04
null
null
null
0
null
1,183
Europe/Andorra
2015-05-06
3,038,830
Bosc de Villar
Bosc de Villar
null
42.60135
1.5434
V
FRST
AD
null
05
null
null
null
0
null
1,860
Europe/Andorra
2014-12-03
3,038,831
Torrent de Vila
Torrent de Vila
null
42.53414
1.56678
H
STM
AD
null
03
null
null
null
0
null
1,337
Europe/Andorra
2015-02-06
3,038,832
Vila
Vila
Casas Vila,Vila
42.53176
1.56654
P
PPL
AD
null
03
null
null
null
1,418
null
1,318
Europe/Andorra
2024-11-04
3,038,833
Basers de Vicenç
Basers de Vicenc
null
42.47669
1.4829
T
CLF
AD
null
06
null
null
null
0
null
1,019
Europe/Andorra
2015-03-08
3,038,834
Pla de Viàs
Pla de Vias
null
42.59001
1.65996
T
UPLD
AD
null
02
null
null
null
0
null
2,052
Europe/Andorra
2014-12-03
3,038,835
Vial del Cardaire
Vial del Cardaire
null
42.56372
1.50503
L
LCTY
AD
null
04
null
null
null
0
null
1,574
Europe/Andorra
2014-11-05
3,038,836
Font del Vi
Font del Vi
null
42.52342
1.47698
H
SPNG
AD
null
04
null
null
null
0
null
1,765
Europe/Andorra
2015-03-08
3,038,837
Font Verda
Font Verda
null
42.5557
1.55859
H
SPNG
AD
null
05
null
null
null
0
null
1,787
Europe/Andorra
2015-02-06
3,038,838
Costa Verda
Costa Verda
null
42.48297
1.66086
T
SLP
AD
null
08
null
null
null
0
null
2,572
Europe/Andorra
2015-05-06
3,038,839
Costa Verda
Costa Verda
null
42.48749
1.57108
T
SLP
AD
null
08
null
null
null
0
null
2,150
Europe/Andorra
2015-05-06
3,038,840
Serrat de Ventader
Serrat de Ventader
null
42.49157
1.43183
T
SPUR
AD
null
06
null
null
null
0
null
1,700
Europe/Andorra
2015-03-08
3,038,841
Bony de Vellatocina
Bony de Vellatocina
null
42.61246
1.50594
T
PK
AD
null
05
null
null
null
0
null
2,370
Europe/Andorra
2014-11-05
3,038,842
Pleta Vella
Pleta Vella
null
42.51143
1.60976
L
GRAZ
AD
null
03
null
null
null
0
null
2,258
Europe/Andorra
2015-05-06
3,038,843
Solà Vell
Sola Vell
null
42.46645
1.47647
T
SLP
AD
null
06
null
null
null
0
null
1,602
Europe/Andorra
2015-04-08
3,038,844
Port Vell
Port Vell
null
42.65315
1.55207
T
PASS
AD
null
00
null
null
null
0
null
2,432
Europe/Andorra
2014-11-05
3,038,845
Port Negre del Pallars
Port Negre del Pallars
Port Negre del Pallars,Port Vell
42.56799
1.44412
T
PASS
AD
ES
00
null
null
null
0
null
2,517
Europe/Andorra
2014-11-05
3,038,846
Bancal Vedeller
Bancal Vedeller
null
42.60103
1.45896
R
TRL
AD
null
04
null
null
null
0
null
2,451
Europe/Andorra
2014-11-05
3,038,847
Vedat del Xeig
Vedat del Xeig
null
42.56223
1.48785
L
LCTY
AD
null
04
null
null
null
0
null
1,609
Europe/Andorra
2015-05-06
3,038,848
Vedat dels Plans
Vedat dels Plans
null
42.53983
1.50408
L
AREA
AD
null
04
null
null
null
0
null
1,639
Europe/Andorra
2014-11-05
3,038,849
Vedat de Coll de les Cases
Vedat de Coll de les Cases
null
42.57491
1.49849
L
LCTY
AD
null
04
null
null
null
0
null
1,871
Europe/Andorra
2014-11-05
3,038,850
Serra del Vedat
Serra del Vedat
null
42.46836
1.48497
T
RDGE
AD
null
06
null
null
null
0
null
1,366
Europe/Andorra
2015-04-08
3,038,851
Planades del Vedat
Planades del Vedat
null
42.53939
1.50116
T
UPLD
AD
null
04
null
null
null
0
null
1,732
Europe/Andorra
2015-02-06
3,038,852
Veda de Sorteny
Veda de Sorteny
null
42.62075
1.55042
L
LCTY
AD
null
05
null
null
null
0
null
1,916
Europe/Andorra
2014-11-05
3,038,853
Veda del Castellar
Veda del Castellar
null
42.62578
1.50914
L
AREA
AD
null
05
null
null
null
0
null
2,216
Europe/Andorra
2014-11-05
3,038,854
Canal de les Veces
Canal de les Veces
null
42.52405
1.52124
H
STM
AD
null
04
null
null
null
0
null
1,129
Europe/Andorra
2015-05-06
3,038,855
Coma de Varilles
Coma de Varilles
null
42.63797
1.52599
T
VAL
AD
null
05
null
null
null
0
null
2,288
Europe/Andorra
2014-11-05
3,038,856
Portella de les Vaques
Portella de les Vaques
null
42.56734
1.44421
T
PASS
AD
null
00
null
null
null
0
null
2,544
Europe/Andorra
2014-11-05
3,038,857
Pas de les Vaques
Pas de les Vaques
null
42.58129
1.70146
T
PASS
AD
null
02
null
null
null
0
null
2,498
Europe/Andorra
2014-12-03
3,038,858
Collada de les Vaques
Collada de les Vaques
null
42.56354
1.56884
T
PASS
AD
null
00
null
null
null
0
null
2,096
Europe/Andorra
2014-12-03
3,038,859
Roc del Vaquer
Roc del Vaquer
null
42.63442
1.47968
T
CLF
AD
null
05
null
null
null
0
null
2,389
Europe/Andorra
2014-11-05
3,038,860
Valls de la Coma
Valls de la Coma
null
42.60079
1.63691
L
LCTY
AD
null
02
null
null
null
0
null
1,917
Europe/Andorra
2014-12-03
3,038,861
Vall d'Incles
Vall d'Incles
null
42.58386
1.66331
L
LCTY
AD
null
02
null
null
null
0
null
1,764
Europe/Andorra
2010-01-11
3,038,862
Vall de Soldeu
Vall de Soldeu
null
42.56103
1.68234
T
VAL
AD
null
02
null
null
null
0
null
1,943
Europe/Andorra
2015-03-08
3,038,863
Riu de la Vall del Riu
Riu de la Vall del Riu
null
42.57178
1.61415
H
STM
AD
null
02
null
null
null
0
null
1,569
Europe/Andorra
2014-11-05
3,038,864
Estany Gran de la Vall del Riu
Estany Gran de la Vall del Riu
null
42.60065
1.59278
H
LK
AD
null
02
null
null
null
0
null
2,559
Europe/Andorra
2014-11-05
3,038,865
Cascada de la Vall del Riu
Cascada de la Vall del Riu
null
42.57326
1.61423
H
FLLS
AD
null
02
null
null
null
0
null
1,617
Europe/Andorra
2014-12-03
3,038,866
Canals de la Vall del Riu
Canals de la Vall del Riu
null
42.59059
1.60713
H
RVN
AD
null
02
null
null
null
0
null
2,134
Europe/Andorra
2014-12-03
3,038,867
Camí de la Vall del Riu
Cami de la Vall del Riu
null
42.58421
1.61129
R
TRL
AD
null
02
null
null
null
0
null
1,890
Europe/Andorra
2014-12-03
3,038,868
Bosc de la Vall del Riu
Bosc de la Vall del Riu
null
42.58333
1.61667
V
FRST
AD
null
02
null
null
null
0
null
2,076
Europe/Andorra
2014-12-03
3,038,869
Vall del Riu
Vall del Riu
null
42.59499
1.60747
L
AREA
AD
null
02
null
null
null
0
null
2,197
Europe/Andorra
2014-11-05
3,038,870
Coll de Vall Civera
Coll de Vall Civera
Coll de Valcibera,Coll de Vall Civera,Collado de Vall-Civera,Port de Vall Civera
42.48818
1.66373
T
PASS
AD
ES
00
null
null
null
0
null
2,482
Europe/Andorra
2014-11-05
3,038,871
Obac de la Vall
Obac de la Vall
null
42.46602
1.50498
T
SLP
AD
null
06
null
null
null
0
null
1,254
Europe/Andorra
2015-04-08
3,038,872
Riu Valira d’Orient
Riu Valira d'Orient
Rio Balira del Orien,Riu Valira d'Orient,Riu Valira d’Orient,Río Balira del Orien
42.51146
1.53647
H
STM
AD
null
08
null
null
null
0
null
1,038
Europe/Andorra
2018-09-05
3,038,873
Riu Valira del Nord
Riu Valira del Nord
Riu Valira d'Ordino,Riu Valira del Nord,Riu Valira del Nort,Riu Valira d’Ordino,Valira del Nord,Valira del Norte
42.5123
1.53617
H
STM
AD
null
08
null
null
null
0
null
1,046
Europe/Andorra
2018-09-05
3,038,874
Estanys de la Val del Riu
Estanys de la Val del Riu
null
42.60398
1.59622
H
LKS
AD
null
02
null
null
null
0
null
2,567
Europe/Andorra
2014-11-05
3,038,875
Vaca Morta
Vaca Morta
null
42.5681
1.76256
L
LCTY
AD
null
02
null
null
null
0
null
1,858
Europe/Andorra
2014-11-05
3,038,876
Riu d’Urina
Riu d'Urina
null
42.5594
1.58998
H
STM
AD
null
02
null
null
null
0
null
1,450
Europe/Andorra
2014-12-03
3,038,877
Serrat de la Uïna
Serrat de la Uina
null
42.55975
1.52393
T
RDGE
AD
null
05
null
null
null
0
null
1,516
Europe/Andorra
2015-02-06
3,038,878
Obaga de la Tuta
Obaga de la Tuta
null
42.48885
1.44734
T
SLP
AD
null
06
null
null
null
0
null
1,387
Europe/Andorra
2015-03-08
3,038,879
Cova de la Tuta
Cova de la Tuta
null
42.48678
1.44548
S
CAVE
AD
null
06
null
null
null
0
null
1,567
Europe/Andorra
2015-03-08
3,038,880
Roca del Tut
Roca del Tut
null
42.54941
1.45701
T
RK
AD
null
04
null
null
null
0
null
2,010
Europe/Andorra
2015-02-06
3,038,881
Coll de Turer
Coll de Turer
null
42.55784
1.46979
T
PASS
AD
null
04
null
null
null
0
null
2,115
Europe/Andorra
2014-11-05
3,038,882
Font del Tudó
Font del Tudo
null
42.44205
1.53489
H
SPNG
AD
null
06
null
null
null
0
null
1,897
Europe/Andorra
2015-04-08
3,038,883
Estany de les Truites
Estany de les Truites
null
42.57705
1.44801
H
LK
AD
null
04
null
null
null
0
null
2,289
Europe/Andorra
2014-11-05
3,038,884
Pic de Costa Rodona
Pic de Costa Rodona
null
42.6518
1.4787
T
PK
AD
AD,FR
05
null
null
null
0
2,816
2,560
Europe/Andorra
2023-11-12
3,038,885
Riu de Tristaina
Riu de Tristaina
null
42.615
1.53707
H
STM
AD
null
05
null
null
null
0
null
1,536
Europe/Andorra
2014-11-05
3,038,886
Pic de Tristaina
Pic de Tristaina
Pic de Tristagne,Tristaina
42.65342
1.49241
T
PK
AD
AD,FR
05
null
null
null
0
2,878
2,384
Europe/Andorra
2024-03-21
3,038,887
Clot de Tres Torrents
Clot de Tres Torrents
null
42.54063
1.53382
H
RVN
AD
null
04
null
null
null
0
null
1,466
Europe/Andorra
2015-02-06
3,038,888
Bony de Tres Corts
Bony de Tres Corts
null
42.52911
1.53538
T
SPUR
AD
null
04
null
null
null
0
null
1,483
Europe/Andorra
2015-02-06
3,038,889
Canal dels Trèmols
Canal dels Tremols
null
42.49814
1.49076
H
STM
AD
null
07
null
null
null
0
null
1,214
Europe/Andorra
2015-03-08
3,038,890
Travenc
Travenc
null
42.60215
1.69377
L
LCTY
AD
null
02
null
null
null
0
null
1,911
Europe/Andorra
2014-12-03
3,038,891
Pleta de la Trava
Pleta de la Trava
null
42.48464
1.62251
L
GRAZ
AD
null
08
null
null
null
0
null
2,139
Europe/Andorra
2015-05-06
3,038,892
Coll de la Trava
Coll de la Trava
null
42.47973
1.47555
T
SPUR
AD
null
06
null
null
null
0
null
1,289
Europe/Andorra
2015-03-08
3,038,893
Canal de la Trava
Canal de la Trava
null
42.57395
1.52496
H
RVN
AD
null
05
null
null
null
0
null
1,521
Europe/Andorra
2014-12-03
3,038,894
Bosc de la Trava
Bosc de la Trava
null
42.4844
1.63007
V
FRST
AD
null
08
null
null
null
0
null
2,221
Europe/Andorra
2015-05-06
3,038,895
Font dels Traginers
Font dels Traginers
null
42.43156
1.52845
H
SPNG
AD
AD,ES
00
null
null
null
0
null
2,022
Europe/Andorra
2015-04-08
3,038,896
Pla de les Toves
Pla de les Toves
null
42.46355
1.45008
T
UPLD
AD
null
06
null
null
null
0
null
1,774
Europe/Andorra
2015-04-08
3,038,897
Torrent del Tossalroi
Torrent del Tossalroi
null
42.47256
1.51244
H
STM
AD
null
06
null
null
null
0
null
1,345
Europe/Andorra
2015-05-06
3,038,898
Tossal Gran
Tossal Gran
null
42.47986
1.4892
L
LCTY
AD
null
07
null
null
null
0
null
941
Europe/Andorra
2015-05-06
3,038,899
Tossalet i Vinyals1
Tossalet i Vinyals1
Tossalet i Vin'jal's,Tossalet i Vinyals,Тоссалет і Віньяльс
42.48597
1.4891
P
PPLL
AD
null
07
null
null
null
0
null
1,015
Europe/Andorra
2025-03-13
3,038,900
Bosc del Tossal de les Poselles
Bosc del Tossal de les Poselles
null
42.53331
1.50326
V
FRST
AD
null
04
null
null
null
0
null
1,509
Europe/Andorra
2015-02-06
3,038,901
Tossal
Tossal
null
42.45927
1.49176
L
LCTY
AD
null
06
null
null
null
0
null
1,050
Europe/Andorra
2015-04-08
3,038,902
Tosquers
Tosquers
null
42.56587
1.48763
T
SLP
AD
null
04
null
null
null
0
null
1,514
Europe/Andorra
2014-11-05
3,038,903
Canal del Tosquer
Canal del Tosquer
null
42.57114
1.52067
H
STM
AD
null
05
null
null
null
0
null
1,327
Europe/Andorra
2014-12-03
3,038,904
Bosc del Tosquer
Bosc del Tosquer
null
42.57189
1.52369
V
FRST
AD
null
05
null
null
null
0
null
1,416
Europe/Andorra
2014-12-03
3,038,905
Bosc del Tosquer
Bosc del Tosquer
null
42.53793
1.6007
V
FRST
AD
null
03
null
null
null
0
null
1,806
Europe/Andorra
2015-02-06
3,038,906
Bosc de la Tosca
Bosc de la Tosca
null
42.43912
1.45592
V
FRST
AD
null
06
null
null
null
0
null
1,428
Europe/Andorra
2015-04-08
3,038,907
Tosa d’Incles
Tosa d'Incles
null
42.58675
1.68935
L
AREA
AD
null
02
null
null
null
0
null
2,363
Europe/Andorra
2014-12-03
3,038,908
Cap de Tosa d’Entor
Cap de Tosa d'Entor
null
42.60016
1.65212
T
PK
AD
null
02
null
null
null
0
null
2,486
Europe/Andorra
2014-12-03
End of preview. Expand in Data Studio

Geonames

A simple parquet conversion of Geonames place database and ZIP codes.

Source

The tab-separated, zipped textfiles allCountries.zip from:

Columns

allCountries.zip

The main 'geoname' table has the following fields :
---------------------------------------------------
geonameid         : integer id of record in geonames database
name              : name of geographical point (utf8) varchar(200)
asciiname         : name of geographical point in plain ascii characters, varchar(200)
alternatenames    : alternatenames, comma separated, ascii names automatically transliterated, convenience attribute from alternatename table, varchar(10000)
latitude          : latitude in decimal degrees (wgs84)
longitude         : longitude in decimal degrees (wgs84)
feature class     : see http://www.geonames.org/export/codes.html, char(1)
feature code      : see http://www.geonames.org/export/codes.html, varchar(10)
country code      : ISO-3166 2-letter country code, 2 characters
cc2               : alternate country codes, comma separated, ISO-3166 2-letter country code, 200 characters
admin1 code       : fipscode (subject to change to iso code), see exceptions below, see file admin1Codes.txt for display names of this code; varchar(20)
admin2 code       : code for the second administrative division, a county in the US, see file admin2Codes.txt; varchar(80) 
admin3 code       : code for third level administrative division, varchar(20)
admin4 code       : code for fourth level administrative division, varchar(20)
population        : bigint (8 byte int) 
elevation         : in meters, integer
dem               : digital elevation model, srtm3 or gtopo30, average elevation of 3''x3'' (ca 90mx90m) or 30''x30'' (ca 900mx900m) area in meters, integer. srtm processed by cgiar/ciat.
timezone          : the iana timezone id (see file timeZone.txt) varchar(40)
modification date : date of last modification in yyyy-MM-dd format

Conversion

import pandas as pd
df = pd.read_csv('allCountries.txt', sep='\t', header=None, low_memory=False)
df.to_parquet('geonames_23_03_2025.parquet')

Quality

Be warned, the quality - especially for other languages than English - might sometimes be low. Sometimes there are duplicates and very confusing entries.

Query with DuckDB

Example query for München

import duckdb
import geopandas
df = duckdb.sql(f"SELECT * FROM 'geonames_23_03_2025.parquet' WHERE \"1\" = 'München'  ").df() # you can add the country code to the query with AND \"8\" = 'GB'
gdf = geopandas.GeoDataFrame(    df,    geometry=geopandas.points_from_xy(x=df["5"], y=df["4"]))
gdf
ID Name Alternate Name Additional Info Latitude Longitude Feature Class Feature Code Country Code Admin Code Admin1 Admin2 Admin3 Admin4 Population Elevation Time Zone Last Update Geometry
2867711 München Muenchen None 51.60698 13.31243 P PPL DE None 11 00 12062 12062500 0 NaN Europe/Berlin 2015-09-04 POINT (13.312 51.607)
2867713 München Munchen None 48.69668 13.46314 P PPL DE None 02 092 09275 09275128 0 NaN Europe/Berlin 2013-02-19 POINT (13.463 48.697)

Note that using the German spelling the query yields nonsense. Instead, query in English:

import duckdb
import geopandas
df = duckdb.sql(f"SELECT * FROM 'geonames_23_03_2025.parquet' WHERE \"1\" = 'Munich' AND \"8\" = 'DE'  ").df() # you can add the country code to the query with AND \"8\" = 'GB'
gdf = geopandas.GeoDataFrame(    df,    geometry=geopandas.points_from_xy(x=df["5"], y=df["4"]))
gdf
ID Name Official Name Alternate Names Latitude Longitude Feature Class Feature Code Country Code Admin Code Admin1 Admin2 Admin3 Admin4 Population Elevation Time Zone Last Update Geometry
2867714 Munich Munich Lungsod ng Muenchen, Lungsod ng München, MUC, Min... 48.13743 11.57549 P PPLA DE None 02 091 09162 09162000 1260391 NaN 524 Europe/Berlin 2023-10-12

This query returns only one entry with a city centroid, just as expected.

Visualize with deck.gl

import pydeck as pdk
import pandas as pd
import numpy as np 

# load some gdf
gdf["coordinates"] = gdf.apply(lambda x: [x.geometry.x, x.geometry.y], axis=1)

# Define a layer to display on a map
layer = pdk.Layer(
    "ScatterplotLayer",
                # coordinates is an array 
    gdf[["1","coordinates"]], # super important! only pass what's needed. If geometry column from geopandas is passed, error!
    pickable=True,
    opacity=0.99,
    stroked=True,
    filled=True,
    radius_scale=6,
    radius_min_pixels=1,
    radius_max_pixels=100,
    line_width_min_pixels=1,
    get_position="coordinates",
    get_radius="1000",
    get_fill_color=[255, 140, 0],
    get_line_color=[255, 140, 0],
)

# Set the viewport location
view_state = pdk.ViewState(latitude=np.mean(gdf.geometry.y), longitude=np.mean(gdf.geometry.x), zoom=12, bearing=0, pitch=0)

# Render
r = pdk.Deck(layers=[layer], initial_view_state=view_state,height=2000, tooltip={"text": "{1}"})
r.to_html("scatterplot_layer.html")

image/png

Sample

ID Name Official Name Alternate Names Latitude Longitude Feature Class Feature Code Country Code Admin Code Admin1 Admin2 Admin3 Admin4 Population Elevation Time Zone Last Update
2994701 Roc Meler Roc Meler Roc Mele, Roc Meler, Roc Mélé 42.58765 1.74180 T PK AD AD,FR 02 NaN NaN NaN 0 2811 Europe/Andorra 2023-10-03
3017832 Pic de les Abelletes Pic de les Abelletes Pic de la Font-Negre, Pic de la Font-Nègre, Pic ... 42.52535 1.73343 T PK AD FR A9 66 663 66146 0 NaN 2411 Europe/Andorra
3017833 Estany de les Abelletes Estany de les Abelletes Estany de les Abelletes, Etang de Font-Negre, Ét... 42.52915 1.73362 H LK AD FR A9 NaN NaN NaN 0 NaN 2260 Europe/Andorra
3023203 Port Vieux de la Coume d’Ose Port Vieux de la Coume d'Ose Port Vieux de Coume d'Ose, Port Vieux de Coume ... 42.62568 1.61823 T PASS AD NaN 00 NaN NaN NaN 0 NaN 2687 Europe/Andorra
3029315 Port de la Cabanette Port de la Cabanette Port de la Cabanette, Porteille de la Cabanette 42.60000 1.73333 T PASS AD AD,FR B3 09 091 09139 0 NaN 2379 Europe/Andorra
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
13216940 GLORIA Seamount GLORIA Seamount NaN 45.03000 -15.53500 U SMU NaN NaN 00 NaN NaN NaN 0 NaN -9999 NaN
13216941 Yubko Hills Yubko Hills NaN 13.01820 -134.41130 U HLSU NaN NaN 00 NaN NaN NaN 0 NaN -9999 NaN
13216942 Maguari Seamount Maguari Seamount NaN 0.68832 -44.31278 U SMU NaN NaN 00 NaN NaN NaN 0 NaN -9999 NaN
13216943 Quintana Seamount Quintana Seamount NaN -32.74950 -38.67696 U SMU NaN NaN 00 NaN NaN NaN 0 NaN -9999 NaN
13216944 Satander Guyot Satander Guyot NaN -1.92806 -37.82161 U DEPU NaN NaN 00 NaN NaN NaN 0 NaN -9999 NaN

13111559 rows × 19 columns

Downloads last month
37