You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolving Google Places IDs utilizes the Google Places API. Therefore a Places API key is mandatory for performing a lookup. Please visit the [Google API console](https://console.developers.google.com/apis/api/geocoding_backend?project=_) to receive an API key.
100
100
101
101
```{php}
102
-
use Markenwerk\CommonException;
102
+
use ChromaX\CommonException;
103
103
104
104
try{
105
105
// Perform lookup
106
-
$googlePlacesLookup = new Markenwerk\GoogleGeocode\Lookup\GooglePlacesLookup();
106
+
$googlePlacesLookup = new ChromaX\GoogleGeocode\Lookup\GooglePlacesLookup();
107
107
$googlePlacesLookup
108
108
->setApiKey('MY_GOOGLE_PLACES_API_KEY')
109
109
->lookup('ChIJ_zNzWmpWskcRP8DWT5eX5jQ');
110
110
111
-
// Retrieving the lookup as an array of Markenwerk\GoogleGeocode\Result\GeoLookupResult instances
111
+
// Retrieving the lookup as an array of ChromaX\GoogleGeocode\Result\GeoLookupResult instances
**Attention:** Plaese note that all getter methods on the `GeoLocationAddress` return a `GeoLocationAddressComponent` instance or `null`. For preventing calls on non-objects the `GeoLocationAddress` class provides methods to check whether the address components exists.
139
139
140
140
```{php}
141
-
// Retrieving the first lookup result as Markenwerk\GoogleGeocode\Result\GeoLookupResult instance
141
+
// Retrieving the first lookup result as ChromaX\GoogleGeocode\Result\GeoLookupResult instance
142
142
$firstResult = $addressLookup->getFirstResult();
143
143
144
-
// Retieving address information as Markenwerk\GoogleGeocode\GeoLocation\GeoLocationAddress
144
+
// Retieving address information as ChromaX\GoogleGeocode\GeoLocation\GeoLocationAddress
PHP Google Geocoder provides different exceptions provided by the PHP Common Exceptions project for proper handling.
236
-
You can find more information about [PHP Common Exceptions at Github](https://github.com/markenwerk/php-common-exceptions).
236
+
You can find more information about [PHP Common Exceptions at Github](https://github.com/chroma-x/php-common-exceptions).
237
237
238
238
## Contribution
239
239
240
240
Contributing to our projects is always very appreciated.
241
-
**But: please follow the contribution guidelines written down in the [CONTRIBUTING.md](https://github.com/markenwerk/php-google-geocoder/blob/master/CONTRIBUTING.md) document.**
241
+
**But: please follow the contribution guidelines written down in the [CONTRIBUTING.md](https://github.com/chroma-x/php-google-geocoder/blob/master/CONTRIBUTING.md) document.**
"description": "A PHP library to query Google's location service for geolocation and reverse lookups based on a given address, a geo location or a Google Places ID.",
"markenwerk/google-places-suite": "A PHP library to query Google's Places service for querying locations and addresses and getting details by Places ID."
36
-
}
2
+
"name": "chroma-x/google-geocoder",
3
+
"type": "library",
4
+
"description": "A PHP library to query Google's location service for geolocation and reverse lookups based on a given address, a geo location or a Google Places ID.",
0 commit comments