liveBook · Manning

Geolocation api

A geolocation API is a programming interface that provides an application with a device’s or user’s geographic location, typically subject to permission.

How 2 Manning books explain it

.NET MAUI in Action

A geolocation API is a programming interface that obtains a device's or user's geographic location.

How it is used
Provides cross-platform access to user location for interactive .NET MAUI app features.
How deep it goes
Explains platform abstraction, consent, accuracy requests, asynchronous retrieval, and coordinate use, but defers physical location internals.
Examples
Uses the FindMe! app, GeolocationRequest, GetLocationAsync, and a Bing Maps link built from latitude and longitude.
What you can do after
Build it from scratch in a .NET MAUI app that requests consent, retrieves coordinates, and shares a location link.

Read how .NET MAUI in Action explains geolocation api →

HTML5 in Action

A browser API that allows web applications to request a user's geographic location, subject to the user's permission.

How it is used
Requests a user's location for location-aware applications, subject to browser permission.
How deep it goes
Names returned location fields and frames map insertion, without specifying method calls or code.
Examples
Uses a rich-text editor button to add a map of the user's current location.
What you can do after
Apply it to retrieve a user's current location and insert a map into an HTML document.

Read how HTML5 in Action explains geolocation api →

Also covered in

What to know first

Related concepts

Questions about geolocation api

What is geolocation api?

A geolocation API is a programming interface that provides an application with a device’s or user’s geographic location, typically subject to permission.

Which Manning books explain geolocation api?

.NET MAUI in Action and HTML5 in Action.

What should I know before learning geolocation api?

Manning books that teach geolocation api usually introduce web application first.

What are the parts of geolocation api?

Geolocation api includes navigator.geolocation.getCurrentPosition.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.