Skip to main content
Participating Frequently
September 16, 2015
Answered

Displaying location in a variable

  • September 16, 2015
  • 2 replies
  • 434 views

Does anyone know if it's possible to use the geolocation variable in Cp8/9 to then look up and display the learner's location in another variable?

I thought this would be a nice way to add some personalisation into a piece of learning, but just not sure if it can be done, or how to do it.

Thanks

This topic has been closed for replies.
Correct answer TLCMediaDesign

If you mean you want to display the city associated with the geolocation, I think you'd need google maps API. There are examples that may help...

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

2 replies

Participating Frequently
September 18, 2015

Yip, that's what I meant. Any idea if that could be made to work with a Captivate 9 project? I'm not sure how one would go about using the JS in that example within Captivate to return the city name in a variable.

TLCMediaDesign
Inspiring
September 18, 2015

I could try to work something out this weekend. I don't have access to my server from my current location.

TLCMediaDesign
TLCMediaDesignCorrect answer
Inspiring
September 17, 2015

If you mean you want to display the city associated with the geolocation, I think you'd need google maps API. There are examples that may help...

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