Skip Navigation

[Resolved] Comparing and showing distances from one location to several other locations

This support ticket is created 2 years, 7 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 1 reply, has 2 voices.

Last updated by Luo Yang 2 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#2371817

For each listing (custom post type), I'd like to show a list of locations and distance from these locations to the listing. So not a map, but rather just a list like this:

Location A: 1.5km
Location B: 0.7km
Location C: 2.0km

I'm just wondering where to start. I have the Toolset Map plugin installed, but not sure if it's needed and if I also need to set up a Google Maps (Cloud) API, etc. And I've added an address field to the listing post type.

Hoping for further guidance. Thanks.

#2372331

Hello,

It is possible within Toolset plugins, you can follow our document to display the distance between custom address field value and a specific address, see our document:
https://toolset.com/course-lesson/filtering-and-ordering-map-markers-by-distance/#displaying-a-distance-between-two-locations
section "Displaying a distance between two locations"