Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How do i call mapview:getUserLocation while not rendering it?
Started by VincentV Mar 24 2015 09:59 PM

1 reply to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

VincentV

[GLOBAL: userInfoPane.html]
VincentV
  • Enthusiast

  • 58 posts
  • Enterprise

Hi Staff & Community!

 

As the question goes, i need to get user location(latitude,longitude, street,details,etc) without showing user the mapview. I just need the functionality. How do i do this? I tried rendering the mapview outside of screen and tried making it invisible by .isVisible =false. Both will cause the functionality to stop working. Latitude & Longitude will always be 0. 

 

Is there anyway to do this? Please advise, thanks!

 

Regards,

Vincent



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,561 posts
  • Enterprise

I would suggest using the GPS without the mapview to get the persons Lat/Long and then use network.request() and call Google GeoEncoding API's directly.

 

Rob




[topic_controls]
[/topic_controls]