I ask this out of a desperate necessity. Recently, when iOS was updated to version 10, getting the geolocation using .getCurrentPosition() stopped working in these devices on a HTTP connection. I can still get the position data on HTTPS, but OpenWeatherMap’s API call link is in HTTP and doesn’t work on a HTTPS connection. So, short story… my Local Weather app doesn’t work on my iPad. This wouldn’t have been a big concern if only it wasn’t that I have limited time to spend on a PC each day, and most of my learning happens on the iPad. I could either change to an API that offers free usage on HTTPS, but I would have to let go of some 75% of the work I’ve done. My idea is that, in case of an error scenario while retrieving geolocation with .getCurrentPosition(), I could use Google Geoposition API to get the latitude and longitude data and continue using the weather app on HTTP. But I can’t find any good resource online on how to use Google Geoposition. Using the POST method, and how to send a JSON populated with the required data is quite new to me. If you can guide me on how to do this, or direct me to good resources, that’d be great. Or if there’s a better work around for my problem, that too would be wonderful.
Link to my Pen --> http://codepen.io/BluecodeA/pen/RGNVjV?editors=0010
UPDATE: I got a solution to the issue that I had thanks to @PortableStick. Still if anyone can leave info or a link to some resource about using Google Geolocation, it’d be great.