ESP8266 Unable to retrieve lat-long-accuracy (GeoLocation API)

Hi,

I am unable to return latitude and longitude using GeoLocation API, using my code when running code using ESP8266.

I tried example from m0xpd with code in ESP8266-GeoLocation/ESP8266_GeoLocate_2.ino at master · m0xpd/ESP8266-GeoLocation · GitHub. I provided my own: netword ssid, password and Credentials for Google GeoLocation API.

Below is output returned in serial monitor:

Requesting URL: https://www.googleapis.com/geolocation/v1/geolocate?key="<API_Key>"

closing connection

latitude = 0.000000
longitude = 0.000000

To validate my API Key, I followed steps here: Geolocation API overview  |  Google for Developers and was able to return latitude, longitude and accuracy via (Google) Cloud Shell.

Please does anyone now why I am unable to display latitude and longitude within Arduino IDE

@oluakin, your topic has been moved to a more suitable location on the forum. I'm not sure why you thought that it belongs in Avrdude, stk500, Bootloader issues.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.