Google Map Direction from User to Job

Ask your questions here.
Post Reply
Flypz
Posts: 16
Joined: 27 Oct 2023, 15:38
Name: Zs
Location: UK

Google Map Direction from User to Job

Post by Flypz »

I'm trying to display the Google Map Direction and calculate the distance between a user's location and a different entity's location. Both the user and the job entity have a field for full address and a Google Map which is working.
The user is assigned to the job via a Users Ajax but I can't get the address values to copy from the user to the job.
Fields on Job
Fields on Job
Fields on User
Fields on User
User Ajax Formula
User Ajax Formula
User avatar
support
Site Admin
Posts: 6231
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Google Map Direction from User to Job

Post by support »

Not supported.
Flypz
Posts: 16
Joined: 27 Oct 2023, 15:38
Name: Zs
Location: UK

Re: Google Map Direction from User to Job

Post by Flypz »

Thanks for the answer,

Is there any workaround for this using an AJAX or SQL formula?
Also, how does the copy function work within the Users Ajax field?
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Re: Google Map Direction from User to Job

Post by Didou12 »

Yes, why you don't use AJAX field with a SQL query ?

Can you provide me ID and type of fields, also ID entities and what field ID you want to get
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
Flypz
Posts: 16
Joined: 27 Oct 2023, 15:38
Name: Zs
Location: UK

Re: Google Map Direction from User to Job

Post by Flypz »

The flow would be the following: a user and a job will have a static address within their page since they're both inside different entities.
On each job, we have to assign a single user by using a User Ajax field [511] (This has to be a User Ajax for other processes). Then we have to display a Distance Map field [743] where we specify the starting distance (the user's location [895] from entity [1]) to the job location (job address [230] within entity [21]).

My main issue is that I don't know how to pass the user location details over automatically when the user is assigned to the job.
Post Reply