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