plotting 100k latitude-longitude locations on map

冷暖自知 提交于 2020-01-06 17:58:45

问题


I have about 100k locations stored in a MySQL server.

I want to plot this in a map, but when I export it to a .csv file and then convert to .kml file, the file size exceeds 20mb, whereas Google Map API has limits of 3mb for .kml file. The .csv file is about 2.5mb, but I cannot load .csv files into Google Map.

Is there any way I can do load the locations to a map?


回答1:


Use Google Fusion Tables - they support 100,000 points per layer and 5 layers in toto. They are lightning fast too as you access them via an SQL-type language that runs on Google's servers - exactly where your data will be when you upload it.

You load your CSV into a Fusion Table in your Google drive and get a key to that table and you then use the key in your Javascript.

I created the following website with Fusion Tables and I am a zero in Javascript! See Skyscan website here.



来源:https://stackoverflow.com/questions/21762568/plotting-100k-latitude-longitude-locations-on-map

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!