# GeoLocation distance search across types

**URL:** <https://discuss.elastic.co/t/geolocation-distance-search-across-types/32030>\
**Category:** Elasticsearch\
**Created:** [October 12, 2015, 6:48pm UTC](https://discuss.elastic.co/t/geolocation-distance-search-across-types/32030 "2015-10-12T18:48:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dharm0us](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@dharm0us](https://discuss.elastic.co/u/dharm0us)\
**Post date:** [October 12, 2015, 6:48pm UTC](https://discuss.elastic.co/t/geolocation-distance-search-across-types/32030/1 "2015-10-12T18:48:05Z")

</div>

I have two types in my city index - zoo and hotel. How do I find all zoos having a hotel in 1KM radius? Here is the mapping of my index :

```
GET /city/_mapping
{
   "city": {
      "mappings": {
         "hotel": {
            "properties": {
               "location": {
                  "type": "geo_point"
               },
               "name": {
                  "type": "string"
               }
            }
         },
         "zoo": {
            "properties": {
               "location": {
                  "type": "geo_point"
               },
               "name": {
                  "type": "string"
               }
            }
         }
      }
   }
}
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:45pm UTC](https://discuss.elastic.co/t/geolocation-distance-search-across-types/32030/2 "2017-07-05T23:45:19Z")

</div>


