Add Location (as link) into SMS

Peter3 years ago

Hello,

after activating SMS using the Traccar SMS Gateway I realized, no information includes any location information.
Is it possible to include the gps information in the link?
At best it would be nice to have it as a link, e.g. for google maps or openstreetmap.

Regards
Peter

Anton Tananaev3 years ago

You can adjust templates to include that information.

Peter3 years ago

Thank you, will test it out.

Waiting for the result sir!

Peter3 years ago

The templates are in the subfolder "templates".

This is the added text into the templates:
Location: <a href="http://www.openstreetmap.org/?mlat=$position.latitude&mlon=$position.longitude&zoom=12">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a>

Works like promised and expected.