Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to calculate distance between 2 locations

Zehra Atmaca March 2, 2020

Hi,

 

I'm searching a way to calculate the distance between :

- city of the current location which is automatically fetched from LDAP

and

- the city of the destination which needs to be manually entered when creating a ticket on the Jira service desk customer portal.

 

Is there someone who has experience with this feature please.?

Any idea is welcome!

 

Thank you in advance.

 

Kr.,

Zehra

 

2 answers

1 vote
Ed Letifov _TechTime - New Zealand_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 8, 2020

I don't think our TechTime Google Maps Embed plugin will help in this case, but thank you for mentioning @Ste Wright!

This is more of a task for ScriptRunner + Google Maps API like Distance Matrix API or Directions API

Please beware of licensing fees/billing:

https://developers.google.com/maps/documentation/distance-matrix/usage-and-billing

https://developers.google.com/maps/documentation/directions/usage-and-billing

1 vote
Ste Wright
Community Champion
March 8, 2020

Hi @Zehra Atmaca

This isn't something I've come across before.

All I can suggest is you'd likely need the co-ordinates to calculate the distance - and then need to consider using a Maps API (such as Google Maps) to verify the distance and populate it into Jira.

This will likely utilise the REST API and/or a scripting tool.

Other alternatives is to embed Google Maps into Confluence using tools such as Embed Google Maps or TechTime Google Maps.

Ste

Suggest an answer

Log in or Sign up to answer