# Getting Long/Lat From Physical Address

**URL:** <https://discuss.elastic.co/t/getting-long-lat-from-physical-address/179251>\
**Category:** Logstash\
**Created:** [May 1, 2019, 8:34pm UTC](https://discuss.elastic.co/t/getting-long-lat-from-physical-address/179251 "2019-05-01T20:34:47Z")\
**Posts on this page:** 5\
**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:** [May 1, 2019, 8:34pm UTC](https://discuss.elastic.co/t/getting-long-lat-from-physical-address/179251/1 "2019-05-01T20:34:47Z")

</div>

Just as the title says, I have a field that is the complete physical address of locations. Is there a way to lookup long/lat for each address so that I can map these events to a visual in Kibana?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 1, 2019, 8:38pm UTC](https://discuss.elastic.co/t/getting-long-lat-from-physical-address/179251/2 "2019-05-01T20:38:31Z")

</div>

Google maps has an API for that.

---

<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:** [May 1, 2019, 8:40pm UTC](https://discuss.elastic.co/t/getting-long-lat-from-physical-address/179251/3 "2019-05-01T20:40:14Z")

</div>

I don't understand, I would use ruby to make the API call and then store the returned long/lat in a separate field or is there a way to make a Kibana visualization (Not the Maps app) use Google's API?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 1, 2019, 8:56pm UTC](https://discuss.elastic.co/t/getting-long-lat-from-physical-address/179251/4 "2019-05-01T20:56:32Z")

</div>

You'd have to use something like a http filter that takes the address and calls the google api to get the coordinates.

---

<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:** [May 29, 2019, 8:56pm UTC](https://discuss.elastic.co/t/getting-long-lat-from-physical-address/179251/5 "2019-05-29T20:56:37Z")

</div>

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