# Using Point To Point in Maps

**URL:** <https://discuss.elastic.co/t/using-point-to-point-in-maps/206108>\
**Category:** Kibana\
**Created:** [October 31, 2019, 10:14pm UTC](https://discuss.elastic.co/t/using-point-to-point-in-maps/206108 "2019-10-31T22:14:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [October 31, 2019, 10:14pm UTC](https://discuss.elastic.co/t/using-point-to-point-in-maps/206108/1 "2019-10-31T22:14:05Z")

</div>

I have an index with multiple geo\_point data types that I'd like to visualize in Maps using the new point to point data source. However, it tells me `Selected index pattern does not contain source and destination fields.` Do I need to reindex my data with another field type or create a scripted field?

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [November 1, 2019, 12:01am UTC](https://discuss.elastic.co/t/using-point-to-point-in-maps/206108/2 "2019-11-01T00:01:17Z")

</div>

I checked the source, and that error is shown because it expects your index pattern to have two different fields of type `geo_point`. Each document would need to contain a source and destination field to use it.

---

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [November 1, 2019, 2:30pm UTC](https://discuss.elastic.co/t/using-point-to-point-in-maps/206108/3 "2019-11-01T14:30:02Z")

</div>

Well at the moment, I have three different fields of type geo\_point.

---

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [November 1, 2019, 2:32pm UTC](https://discuss.elastic.co/t/using-point-to-point-in-maps/206108/4 "2019-11-01T14:32:39Z")

</div>

> [@wylie](#):
>
> Each document would need to contain a source and destination field to use it.

Is this to say I would need at least two geo-point fields to designate source and destination or my mapping needs to identify a source field and a destination field? I don't see in the Elasticsearch documentation under geo-point an option to set source/destination.

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [November 1, 2019, 3:01pm UTC](https://discuss.elastic.co/t/using-point-to-point-in-maps/206108/5 "2019-11-01T15:01:49Z")

</div>

I looked into this closer and it is the second one: your mapping _and index pattern_ must contain two geo\_point fields such as this:

```auto
{
  "source": { "type": "geo_point" },
  "dest": { "type": "geo_point" },
}

```

If your mapping contains that, but your index pattern doesn't, then you need to refresh your index pattern in the Management section.

Based on the screenshot here, this would let you connect the centroids of "source" and "dest" per tile: [https://www.elastic.co/guide/en/kibana/current/point-to-point.html](https://www.elastic.co/guide/en/kibana/current/point-to-point.html)

---

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [November 1, 2019, 3:05pm UTC](https://discuss.elastic.co/t/using-point-to-point-in-maps/206108/6 "2019-11-01T15:05:58Z")

</div>

Ya, I noticed after posting my last response that my template had a syntax error and was not accepted so the data came in dynamically mapped as text.

---

<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:** [November 29, 2019, 3:06pm UTC](https://discuss.elastic.co/t/using-point-to-point-in-maps/206108/7 "2019-11-29T15:06:11Z")

</div>

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