Skip Navigation

[Resuelto] Distance value based on custom field

This support ticket is created hace 5 años, 11 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Christian Cox hace 5 años, 11 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#1173453

hi is the "origin_source='visitor_location' " user current location base on gps?

can we define the origin_source base on custom field; I.e train station?

Thank you

#1173457
Screen Shot 2018-12-27 at 9.36.34 AM.png

hi is the "origin_source='visitor_location' " user current location base on gps?
In this case the User's location is based on the browser's Geolocation API, which is part of the HTML5 standard:
https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API
http://www.andygup.net/html5-geolocation-api-%E2%80%93-how-accurate-is-it-really/
GPS information may be part of the algorithm used to determine location, but it's used indirectly.

can we define the origin_source base on custom field; I.e train station?
If you want to display the distance between two arbitrary locations, you can use the toolset-maps-distance-value shortcode with a URL parameter or a pair of latitude/longitude coordinates. We have more information about this shortcode available here:
https://toolset.com/documentation/user-guides/maps-shortcodes/#toolset-maps-distance-value
See the attached screenshot.