LocationService User Experience
Location Basics
Use the LocationService API
LocationService Example
Compatibility and Requirements
Considerations and Limitations
Previous Versions
Your component can deliver any user experience you desire. There are a number of common location-based features where LocationService might be suitable.
Here are a few examples of common location-based features:
In these examples, LocationService is usually only a part of the complete solution. Map display, route and travel time calculations, and so on are other parts that you need to implement yourself.
If your feature is a straightforward, map-based page, you can use LocationService position information along with the lightning-map base component. For more complex solutions, such as those requiring routing directions, you might need to integrate with other tools or services.