开发者

Trying to use a Google Maps user interface to caputre Lat/Lon in Django

I'm a Django newbie, and learning qui开发者_如何学编程ckly. But I just can't figure out how to get this simple Google Maps user interface to pass the resulting lat/lon into my database. Can anyone help?


I'm not familiar with Django, but the general principle for passing data from a client side Google Map to a server side database is to send the data from the client to a server using a GDownloadUrl() call. Write a separate dedicated server that accepts data from the client, writes it to the database and does nothing else.

Alternatively, you could make HTTP geocoding calls directly from your server side script, and not bother with displaying a Google Map at all during the data capture phase. Obviously, you have to eventually display the geocoded information on a publicly accessible Google Map in order to comply with Google's Terms.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜