Geolocation APIs available?

Are there geolocation APIs available/accessible in Defold? Specifically getting high-accuracy geoposition (including altitude if available) and compass heading?

If not, is this something that can be reasonably done through a Native extension?

None exist ready that I’m are. Yes, very easy to do with a native extension.

Is there a “skeleton” or “sample” native extension that shows how one would implement one that provided implementations for both iOS and Android?

Here is the info I found on extensions, there are some examples there too. Still digging through everything right now so hope this helps.


iOS & Android admob extension: https://github.com/defold/extension-admob

1 Like

My Gyroscope extension would be the perfect place to start. It uses the kind of sensors that you’re looking for, although my extension returns the values needed to do Pokemon Go style AR experiences. The extension: https://github.com/britzl/defold-gyro

4 Likes