Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get geojson of mainly cities of all of country of the world

I'm making a map use echarts with geojson mapdata,but i need a geojson resource that contain main cities of all of country of the world,i had looked for everywhere on website ,but the mostly resource is just have border of country not has cities border data. and i also checked the highcharts mapdata resource but the crs option is ESPG type .i need the Longitude latitude coordinates

like image 501
L.qian Avatar asked Dec 24 '22 06:12

L.qian


1 Answers

depends on how many city do you want?

If you want 36430 city with only city name, go here

https://github.com/drei01/geojson-world-cities

If you want 1240 city with lots of details info go here: (choose populated-place)

http://geojson.xyz

if you only need major 120 city with only city name go here: (choose world city) https://github.com/mapbox/mapping

like image 119
hoogw Avatar answered May 14 '23 17:05

hoogw