Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

google map address

Thanks Katya,
I will try

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

google map address

HI, I want to get the address of a lat & long (reverse geocoding) using this:

http://maps.googleapis.com/maps/api/g...

it works fine (the response is the formatted address of that particular geopoint) when connected through wifi,

But it returns "undefined" when connected through cellular network....

I ́ve read Google Api docs

https://developers.google.com/maps/do...

But cant find why,,,

Do you have any suggestion?
Regards

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

google map address

Hi Aliex,

Please set up following request parameters for geolocation datasource mapping.

http://prntscr.com/4e8s0v/direct

Regards.

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

google map address

Hi Yurii,

I ́ve tried that...but still got "undefined"

Let me explain again:

I ́m running a geolocation service, and then the lat & long are saved to local Storage.

I use this variables to set the marker on the map.

on complete service I ́m running a REST service with this URL

http://maps.googleapis.com/maps/api/g...

and on test tab, I set the latlng and then hit automatically create service response.

From the response I bound the formated address to a label on the screen.

The problem is:

when using cellular network the formatted address returns "undefined"
but when connecting through WIFI, the address returned is the one of the latlng geopoint..

the question is how to make it works on both?

Regards

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

google map address

Hi Alex,

I guess the problem is in getting lat, long parameters from the service.

So please print them to the page before pass them to the geolocation service to be ensure you have correct values for these two cases(mobile and WIFI).

Also be sure you have all parameters set like on my screenshot above(only with these parameters you will get right long and lat parameters based on GPS provides values).

If you can not manage to fix it please give us your public link and describe how we can test this issue.

Regards.

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

google map address

Hi Yurii,

I printed lat & long from service, and in both cases the values are valid.
I made sure to set the values as you adviced.

It still returns the formated address when using wifi, but when using celular data, returns "undefined"

what I did was to bound the STATUS response to a label.

and the response is OVER_QUERY_LIMIT.
Im calling the REST service on geolocation complete event.

And if I test throung WIFI the status is OK.

I read about this API, and know that the limit calls are 2500 per day, but I ́m just testing, this app isnt released yet.

I also read this:
https://getsatisfaction.com/apperyio/...

What should I do to fix this error?

I took a look to some threads on stackoverflow, but cant find a solution..

Regards

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

google map address

update:
In this thread:
http://stackoverflow.com/questions/98...

user 276648 faced the same problem... and the last answer said that he solved this adding the API key..

Can you guide on how to get this?

Regards

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

google map address

Hi Alex,

Please check this:
https://developers.google.com/maps/do...

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

google map address

it didnt help..have read this before...

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

google map address

Hello!

Please provide us with a public app link (http://devcenter.appery.io/documentat...) and steps to reproduce.

Return to “Issues”