---
url: /dash-core-components/geolocation
name: Geolocation
description:
    "Use the dcc.Geolocation to retrieve the geographic location of the user, enhancing location-based features in your app."
languages:
    - python
---
# ![](/assets/images/language_icons/f-sharp_50px.svg) dcc.Geolocation

The `dcc.Geolocation` component that retrieves the geographic location of the user enhancing location-based features in your app.

In this example, the first callback updates the location data when the button is selected. The second callback then triggers with the `local_date` and `position` data and outputs it to a div.

{{example basic_geo_location}}

![Geolocation running example](/assets/images/dcc/geolocation.gif)

------------------------

{{reference dcc.Geolocation}}
