Skip to main content

GeoLocation

Namespace

Namespace in the Lens Scripting API.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Functions

FunctionDescription
createLocationServiceCreates a new LocationService.
getGeoPositionForLocationReturns the GPS position of a custom location.
getNorthAlignedHeadingCalculates heading based on north aligned device orientation.