Add Location (as link) into SMS

Peter 4 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 Tananaev 4 years ago

You can adjust templates to include that information.

Peter 4 years ago

Thank you, will test it out.

marko.lapulapu.919 4 years ago

Waiting for the result sir!

Peter 4 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.