Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

requestLocation() errorCode 0
Started by philipp3 Dec 18 2019 07:31 AM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

philipp3

[GLOBAL: userInfoPane.html]
philipp3
  • Enthusiast

  • 90 posts
  • Corona SDK

Hello,

 

I am trying to find addresses on Android, but always get errorCode 0 and no errorMessage. On iOS, it works fine. mapsKey is correct, and internet permission is being required.

Map calls like setRegion() or addMarker() also work fine.

 

 

code:

local function locationHandler(e)
  if (e.isError) then
    print("Map Error: " .. json.prettify(e))
  else
    print("Map Location: " .. e.latitude .. "," .. e.longitude)
  end
end
map: requestLocation(e.target.text, locationHandler)

print:

12-18 16:22:14.271 30074 30460 I Corona  : Map Error: {

12-18 16:22:14.271 30074 30460 I Corona  :   "errorCode":0,

12-18 16:22:14.271 30074 30460 I Corona  :   "errorMessage":"",

12-18 16:22:14.271 30074 30460 I Corona  :   "isError":true,

12-18 16:22:14.271 30074 30460 I Corona  :   "name":"mapLocation",

12-18 16:22:14.271 30074 30460 I Corona  :   "request":"San Francisco",

12-18 16:22:14.271 30074 30460 I Corona  :   "type":"request"

12-18 16:22:14.271 30074 30460 I Corona  : }



[TOPIC: post.html]
#2

philipp3

[GLOBAL: userInfoPane.html]
philipp3
  • Enthusiast

  • 90 posts
  • Corona SDK

Still no luck on this one. Any ideas?




[topic_controls]
[/topic_controls]