# How to implement Near Me

**URL:** https://discuss.elastic.co/t/how-to-implement-near-me/215304
**Category:** Elastic Search
**Tags:** elastic-app-search
**Created:** [January 16, 2020, 11:32am UTC](https://discuss.elastic.co/t/how-to-implement-near-me/215304 "2020-01-16T11:32:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)
#### Post date: [January 16, 2020, 11:32am UTC](https://discuss.elastic.co/t/how-to-implement-near-me/215304/1 "2020-01-16T11:32:42Z")

</div>

A user asked this question and then withdrew their post. Re-posting the answer here because I thought it was a valid question that others may have in the future:

Near me can be implemented with a Geo Filter: [Filters | Swiftype Documentation](https://swiftype.com/documentation/app-search/api/search/filters#geo-filters).

```auto
"filters": {
    "location": {
      "center": "37.386483, -122.083842",
      "distance": 300,
      "unit": "km"
    }
  }

```

Pass the user's location in as "center" and then adjust the "distance" and "unit" to whatever you would consider "near".

---

<div class="post-metadata">

### Author: ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)
#### Post date: [February 13, 2020, 11:32am UTC](https://discuss.elastic.co/t/how-to-implement-near-me/215304/2 "2020-02-13T11:32:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
