douchi1945 2010-08-17 23:19
浏览 22

MySQL dB的POI,随着varius半径下拉,结果被ajax到google地图上?

I have a MySQL database of addresses (my custom points of interest - not Googles) and their associated Lat/Long. What would be the simplest way for a user to my site (their lat/long is also stored in their user profile) to be shown a:

  1. google map with their own lat/long as a starting (center) point
  2. default radius of 10 Miles
  3. all Points of Interest within that 10mile radius

If it is simpler to use zipcodes for the POI's and the user I have those as well.

Thanks in advance for any advice given, or information leading to tutorials that could get this done.

  • 写回答

1条回答 默认 最新

  • doudun6928 2010-08-18 00:10
    关注

    You can see how to get the lat/lon radius on another question: php mysql compare long and lat, return ones under 10 miles

    You will need to implement access to the google maps api and dump the variables into the points of interest. You may be able to glean some useful information from a cakephp helper: http://github.com/cdburgess/helpers/blob/master/google_map.php

    You should be able to strip out the function and use it properly in PHP.

    评论

报告相同问题?

悬赏问题

  • ¥20 数学建模,尽量用matlab回答,论文格式
  • ¥15 昨天挂载了一下u盘,然后拔了
  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
  • ¥20 易康econgnition精度验证
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能