开发者

Google maps. Coordinate parser by titles

开发者 https://www.devze.com 2023-03-21 11:39 出处:网络
I think it\'s common task. I have about 2400 raws in database with titles of skiing resorts. I have to parse coordimate of point开发者_StackOverflow in search results of each raw. Sometimes, result ha

I think it's common task.

I have about 2400 raws in database with titles of skiing resorts. I have to parse coordimate of point开发者_StackOverflow in search results of each raw. Sometimes, result has more than one point, how can i occurate results?

Suggest best algorytm for this task. May be Google Maps API has some helpfull methods for this task.


I think you can consider about JQuery to send a async request to the the server, the server responses for retrieving the data. After retrieving your rows of data, you can build these position with JSON which likes this [{x:1,y:1},{x:2,y:2}]; it means two rows of data. When the server method runs completely, the client side raises a callback which can access result JSON; the JSON can be manually parsed by you to the LatLng object in Google API right. I think you know the rest stuffs.

Hope it helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消