How to get address of a location on MAP

wakespirit
Kilo Guru

Dear all,

From a mobile page in servicenow I am retrieving the location of a map point which return Lat and Long coordinate.

From that coordinate, how can I get the corresponding address of those coordinate ?

Any idea?

regards

1 ACCEPTED SOLUTION

as of now i dont have ready made solution available.

did you try to have a look on service-now google maps doc. here you need to use the google map api and you have to pass the API Key and other details in the system properties .

if you see the OOTB map page script it's cureently showing the incident location on the map but i think you can customize that map page based on your need.

i would suggest here kindly have a look on that.

 

https://docs.servicenow.com/bundle/madrid-platform-administration/page/administer/navigation-and-ui/...

 

https://docs.servicenow.com/bundle/madrid-platform-user-interface/page/administer/navigation-and-ui/...

View solution in original post

10 REPLIES 10

asifnoor
Kilo Patron

Hi Wakespirit,

You need to use Google API to fetch the name of the location based on the lat/long.

Refer to these links on how to call the API and get the name

https://stackoverflow.com/questions/6797569/get-city-name-using-geolocation/6798005

https://stackoverflow.com/questions/6548504/how-can-i-get-city-name-from-a-latitude-and-longitude-po...

Mark the comment as a correct answer if this answers your question.

Yes but how to do in Servicenow script ?

Harsh Vardhan
Giga Patron

did you check the below blog?

 Open Google Map from a Location Record

Yes but this does not work on mobile app. And my concern is to retrive the adress name from a location lat Long