πŸ”§ Sorting entries by closest locations

How to update from Smart Map to Google Maps

Follow the instructions below to learn how to update to the new Google Maps plugin...

The general syntax for conducting a proximity search did not change:

{# BOTH OLD & NEW - EXACT SAME SYNTAX! #}
{% set entries = craft.entries.myAddressField(options).orderBy('distance').all() %}

However, while the syntax remains unchanged, the options parameter has been altered slightly. For more information, read about the updated proximity search options.

New Documentation

See the complete new Proximity Search documentation.