利用谷歌地图搜索ZIP codeS在我的数据库 [英] Using Google Maps to search zipcodes in my database
问题描述
我有拉链codeS的数据库。我想使用谷歌地图API来搜索ZIP codeS在我的数据库是一个zip code我进入5英里半径范围内的。
I have a database with zipcodes. I would like to use the Google Maps API to search zipcodes in my database that are within a 5 mile radius of a zipcode I enter.
例如,我把我33180.想从我的数据库中的所有拉链codeS /地区的近33180检索,使用谷歌地图API。
For example, I put in 33180. I want to retrieve from my database all the zipcodes/areas close to 33180, using Google Maps API.
QUERY * FROM zipcodes WHERE zipcode=zipcodes within 5 miles of 33180 (produced by Google Maps API)
这可能与谷歌地图API?我可以在哪里开始,如果这样的吗?
Is this possible with Google Maps API? Where can I start if so?
推荐答案
您不能使用谷歌地图API独自做到这一点,你需要一些服务器端语言来查询数据库。
You cant do this with the google maps api alone, you need some server side language to query your database.
由谷歌编写教程:
HTTP://$c$c.google.com/的API /地图/用品/ phpsqlsearch.html
这篇关于利用谷歌地图搜索ZIP codeS在我的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!