Page 2 of 3

google map address

Posted: Thu Feb 21, 2013 2:31 pm
by Michael4771079

Thanks Katya,
I will try


google map address

Posted: Tue Aug 19, 2014 4:34 am
by Alex GG

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


google map address

Posted: Tue Aug 19, 2014 4:50 am
by Yurii Orishchuk

Hi Aliex,

Please set up following request parameters for geolocation datasource mapping.

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

Regards.


google map address

Posted: Tue Aug 19, 2014 5:19 am
by Alex GG

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


google map address

Posted: Tue Aug 19, 2014 9:25 pm
by Yurii Orishchuk

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.


google map address

Posted: Thu Aug 21, 2014 5:44 am
by Alex GG

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


google map address

Posted: Thu Aug 21, 2014 8:12 am
by Alex GG

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


google map address

Posted: Thu Aug 21, 2014 10:54 am
by Kateryna Grynko

Hi Alex,

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


google map address

Posted: Thu Aug 21, 2014 2:02 pm
by Alex GG

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


google map address

Posted: Thu Aug 21, 2014 9:32 pm
by obullei

Hello!

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