# Geo point search example with multiple locations

**URL:** <https://discuss.elastic.co/t/geo-point-search-example-with-multiple-locations/12472>\
**Category:** Elasticsearch\
**Created:** [June 19, 2013, 7:13am UTC](https://discuss.elastic.co/t/geo-point-search-example-with-multiple-locations/12472 "2013-06-19T07:13:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chh](https://avatars.discourse-cdn.com/v4/letter/c/7ab992/32.png) [@chh](https://discuss.elastic.co/u/chh)\
**Post date:** [June 19, 2013, 7:13am UTC](https://discuss.elastic.co/t/geo-point-search-example-with-multiple-locations/12472/1 "2013-06-19T07:13:26Z")

</div>

Hello,

does anyone have an example for geo point search with documents containing  
multiple locations (as mentioned in the docs).  
I got the search running (I think) but how do i get the distance? Script  
fields always returns the distance of lowest lat/lon for me.  
Is it possible to add something like an ID to the lat/lon values to  
identify the matched locations?

Best regards

Christian

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![chh](https://avatars.discourse-cdn.com/v4/letter/c/7ab992/32.png) [@chh](https://discuss.elastic.co/u/chh)\
**Post date:** [June 19, 2013, 7:15am UTC](https://discuss.elastic.co/t/geo-point-search-example-with-multiple-locations/12472/2 "2013-06-19T07:15:12Z")

</div>

Forgot:

Using latest version 0.90.1 on windows 7 64bit.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:30am UTC](https://discuss.elastic.co/t/geo-point-search-example-with-multiple-locations/12472/3 "2017-07-06T02:30:28Z")

</div>


