Skip Navigation

[Resolved] Calculate distance between multiple location and display in a view or template.

This thread is resolved. Here is a description of the problem and solution.

Problem:

I mean a form that show fields, Start location and End location with google api and user fill the location (only places).

After submit calculate distance between filled locations (places), and show that distance and location to a View in a template (toolset).

Solution:

There isn't such kind of built-in feature within Toolset map plugin, I suggest you add a feature request for it.

Relevant Documentation:

This support ticket is created 5 years, 10 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Himanshu Agarwal 5 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1175826

How to make a form to take location from user end?

I mean a form that show fields, Start location and End location with google api and user fill the location (only places).

I need a form working like this in toolset:

hidden link

After submit calculate distance between filled locations (places), and show that distance and location to a View in a template (toolset).

Please let me know, how to make this process step by step?

#1175833

Hello,

There isn't such kind of built-in feature within Toolset map plugin, I suggest you add a feature request for it:
https://toolset.com/forums/forum/professional-support/#feature-request

There is a built-in feature "Filtering and Ordering Map Markers by Distance" with Toolset plugins, see our document:
https://toolset.com/documentation/user-guides/display-on-google-maps/filtering-and-ordering-map-markers-by-distance/

For your reference.

#1176724

Thank you!