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
This is the MapQuest provider from the PHP Geocoder. This is a READ ONLY repository. See the
main repo for information and documentation.
Install
composer require geocoder-php/mapquest-provider
Geocode with more exact addresses
The MapQuest Provider allows you to create and pass geocode queries based on a full Address object of
class Geocoder\Model\Address or any other object that implements Geocoder\Location.
The 5-Box Input address format (which is compatible with JSON and XML),
allows for a higher degree of address specification by entering the full address in its individual location parameters.
The 5-Box Input format is beneficial as it bypasses the parsing functionality of the single-line request.
If you have an object of a class that implements Geocoder\Location stored in the variable $address,
this new type of GeocodeQuery can be created with:
If you want the GeocodeQuery to also work fine with all the other providers,
you will need to convert the $address object to a text string first.
Say you have stored this text string in the variable $addressAsString, the the example will read as follows: