# Locations Plugin 🌍

**URL:** https://meta.discourse.org/t/locations-plugin/69742
**Category:** Plugin
**Tags:** paid-support
**Created:** [September 10, 2017, 10:36am UTC](https://meta.discourse.org/t/locations-plugin/69742 "2017-09-10T10:36:41Z")
**Posts on this page:** 1
**Showing post:** 684

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [February 8, 2021, 10:50pm UTC](https://meta.discourse.org/t/locations-plugin/69742/684 "2021-02-08T22:50:33Z")

</div>

For each user you can do something along the lines of:

```plaintext
myUser = User.find_by(username_lower: '<username>')

```

then

```plaintext
userLocation = JSON.parse(myUser.custom_fields[:geo_location])

```

then

```plaintext
userLatitude = userLocation.['lat']

```

on the rails console … etc.

---

_[View the full topic](https://meta.discourse.org/t/locations-plugin/69742)._
