根据位置创建 Google 地图(否 Latitude/Longitude)
Create Google Map from location (No by Latitude/Longitude)
目前我有一个包含一些地址的数据库,我想制作一个 php 脚本来根据存储在我的 MySQL 数据库中的地址自动生成 google 地图。
也就是说,就像我在 https://maps.google.com/ 搜索框中手动导航和 copy/paste,然后单击搜索一样。就像一个人手动做的一样。
我看过一个例子,看到他们总是使用纬度和经度,我不想那样做,因为我不知道这些信息,我想通过地址搜索(存储在我的数据库中)。
我知道 JavaScript 和 PHP,但我从未使用过 Google API(有必要吗?)。
有没有根据地址生成Google地图的教程?
请原谅我糟糕的英文书写方式
感谢阅读:-)
我不知道有教程,但绝对要看的地方是 Google's Geocoding API. You can provide an address, which will convert to a longitude and latitude. You can then use the lat/lng to find the exact address on the map. If you have not done so already, then you should follow this tutorial to make a Google Dev account。
目前我有一个包含一些地址的数据库,我想制作一个 php 脚本来根据存储在我的 MySQL 数据库中的地址自动生成 google 地图。
也就是说,就像我在 https://maps.google.com/ 搜索框中手动导航和 copy/paste,然后单击搜索一样。就像一个人手动做的一样。
我看过一个例子,看到他们总是使用纬度和经度,我不想那样做,因为我不知道这些信息,我想通过地址搜索(存储在我的数据库中)。
我知道 JavaScript 和 PHP,但我从未使用过 Google API(有必要吗?)。
有没有根据地址生成Google地图的教程?
请原谅我糟糕的英文书写方式
感谢阅读:-)
我不知道有教程,但绝对要看的地方是 Google's Geocoding API. You can provide an address, which will convert to a longitude and latitude. You can then use the lat/lng to find the exact address on the map. If you have not done so already, then you should follow this tutorial to make a Google Dev account。