# Point to Point between geopoints

**URL:** https://discuss.elastic.co/t/point-to-point-between-geopoints/242319
**Category:** Kibana
**Created:** [July 23, 2020, 10:14am UTC](https://discuss.elastic.co/t/point-to-point-between-geopoints/242319 "2020-07-23T10:14:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kibana2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kibana2/32/49944_2.png) [@kibana2](https://discuss.elastic.co/u/kibana2)
#### Post date: [July 23, 2020, 10:14am UTC](https://discuss.elastic.co/t/point-to-point-between-geopoints/242319/1 "2020-07-23T10:14:58Z")

</div>

I would like to draw lines connecting a series of geopoints. I have given each one a source and destination geopoint (the source of each is its own location and the destination of each is the location of the next geopoint). But when I map them using the point to point approach, no lines appear between them.

How can I connect these points?

---

<div class="post-metadata">

### Author: ![kibana2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kibana2/32/49944_2.png) [@kibana2](https://discuss.elastic.co/u/kibana2)
#### Post date: [July 23, 2020, 11:23am UTC](https://discuss.elastic.co/t/point-to-point-between-geopoints/242319/2 "2020-07-23T11:23:30Z")

</div>

I kind of figured it out. I needed to add a layer for source geopoint and another for destination geopoint, then the point to point layer showed up.

The weird part is that now, since every point is the destination of some path and another point needs to be in that same spot as the source of the next path, there are two points at each location even though there is only one visit to that location. I wish I could just have one point for every location visited on the map. Is this possible??

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [July 23, 2020, 11:30am UTC](https://discuss.elastic.co/t/point-to-point-between-geopoints/242319/3 "2020-07-23T11:30:24Z")

</div>

Your workaround is the same I used. This issue has been reported below.

> <https://github.com/elastic/kibana/issues/59106>
>
> \*\*Describe the feature:\*\*
> 
> When filtering a Point to Point (pew pew) Layer by …map bounds, either prevent filtering or allow a user to configure whether or not lines are filtered out.
> 
> I believe this was discussed when Point to Point layers \[was originally introduced\](https://github.com/elastic/kibana/pull/41504), but I don't see it captured in writing anywhere. It's also possible that it was tabled pending a better solution for storing and retrieving lines on the ES side, which has been captured \[here\](https://github.com/elastic/elasticsearch/issues/41649). This solution would likely be a lot cleaner vs. creating the lines on-the-fly on the client side (as we do now) and excepting points from \`geo\_bounding\_box\` filters.
> 
> Also related: https://github.com/elastic/kibana/issues/31396
> 
> \*\*Describe a specific use case for the feature:\*\*
> 
> Any time a user wants to zoom in on a Map point feature connected by lines and wants that line to stay present for context. Also any time the lines themselves may be of primary interest and a user wants to zoom in on a cluster or intersection of them.

---

<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: [August 20, 2020, 11:30am UTC](https://discuss.elastic.co/t/point-to-point-between-geopoints/242319/4 "2020-08-20T11:30:28Z")

</div>

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