在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jstayton/GoogleMapsGeocoder开源软件地址(OpenSource Url):https://github.com/jstayton/GoogleMapsGeocoder开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):NOTICE: This project is deprecated and no longer maintained. If you'd like to continue supporting a forked version, please reach out on Twitter (@kidjustino) to have it listed here. GoogleMapsGeocoderA PHP wrapper for the Google Maps Geocoding API v3. Developed by Justin Stayton while at Monk Development. Requirements
InstallationComposerThe recommended installation method is through
Composer, a dependency manager for PHP. Just add
{
"require": {
"jstayton/google-maps-geocoder": "*"
}
} More details can be found over at Packagist. Manually
Getting StartedWe'll use the address of Monk Development for this example: $address = "2707 Congress St., San Diego, CA 92110"; There are two ways to set the address of a $Geocoder = new GoogleMapsGeocoder($address); Or the address can be set after the object is created: $Geocoder = new GoogleMapsGeocoder();
$Geocoder->setAddress($address); By default, the Once all parameters are set, the final step is to send the request to the Google Maps Geocoding API: $response = $Geocoder->geocode(); The FeedbackPlease open an issue to request a feature or submit a bug report. Or even if you just want to provide some feedback, I'd love to hear. I'm also available on Twitter as @kidjustino. Contributing
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论