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.
.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.
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.
Also covered in
What to know first
- web applicationA web application is software that provides functionality through web technologies and is accessed over a network, typically through a browser or other web client.
Related concepts
- geolocationproduces · Geolocation is the geographic position or place associated with an entity, or information used to represent, determine, or estimate that position.
- MAUIused by · .NET MAUI is a cross-platform .NET framework for building native applications and user interfaces from a shared codebase.
- mockingused by · Mocking is a testing technique that replaces a real dependency or collaborator with a controlled substitute to simulate behavior or inspect interactions.
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.

