The original version of this document is located at https://docs.qfield.org/how-to/navigation-and-positioning/external-routing
Calculate itineraries or open external navigation applications (such as Google Maps or Apple Maps) directly from feature attribute forms in QField.
Configure attribute fields with dynamic hyperlink expressions in QGIS to open routing and mapping services in external mobile applications.
🖥️ Desktop preparation
Configure an attribute field to open driving directions to feature coordinates in Google Maps.
Workflow
routing_url) to your vector layer.Set Default Value to the following navigation directions expression:
sql
concat(
'https://www.google.com/maps/dir/?api=1&destination=',
y(transform($geometry, layer_property(@layer, 'crs'), 'EPSG:4326')),
'%2C',
x(transform($geometry, layer_property(@layer, 'crs'), 'EPSG:4326')),
'&travelmode=driving'
)
(Optional) Enable Apply default value on update to recalculate routing links automatically when feature geometries change.
Configure an attribute field to open and highlight feature coordinates on external maps without initiating active turn-by-turn navigation.
Workflow
Set Default Value to the following location preview expression:
sql
concat(
'[https://maps.google.com?q=](https://maps.google.com?q=)',
y(transform($geometry, layer_property(@layer, 'crs'), 'EPSG:4326')),
'%2C',
x(transform($geometry, layer_property(@layer, 'crs'), 'EPSG:4326')),
'&zoom=19&t=h'
)
(Optional) Enable Apply default value on update.
📱 Fieldwork
Workflow