Geocoding Methods

At the heart of each geocoding lookup is the Lookup Model. It contains the following methods...

# all()

Returns an array of Address Models sorted by best match, or null if nothing is found.

{% set results = googleMaps.lookup(target).all() %}

# one()

Returns a single Address Model, or null if nothing is found.

{% set address = googleMaps.lookup(target).one() %}

# coords()

Returns a single set of coordinates, or null if nothing is found.

{% set coords = googleMaps.lookup(target).coords() %}