# Introduction to Google Maps API for Android with Kotlin

**URL:** <https://forums.kodeco.com/t/introduction-to-google-maps-api-for-android-with-kotlin/38662>\
**Category:** 🎓 Courses & Articles\
**Created:** [January 17, 2018, 8:07pm UTC](https://forums.kodeco.com/t/introduction-to-google-maps-api-for-android-with-kotlin/38662 "2018-01-17T20:07:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![macsimus](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/macsimus/32/109104_2.png) [@macsimus](https://forums.kodeco.com/u/macsimus)\
**Post date:** [January 17, 2018, 8:07pm UTC](https://forums.kodeco.com/t/introduction-to-google-maps-api-for-android-with-kotlin/38662/1 "2018-01-17T20:07:53Z")

</div>

In this Google Maps API Tutorial for Android you will learn how to retrieve the user's current location, get location updates and search for places.

* * *
 This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/230-introduction-to-google-maps-api-for-android-with-kotlin](https://www.raywenderlich.com/230-introduction-to-google-maps-api-for-android-with-kotlin)

---

<div class="post-metadata">

**Author:** ![htad](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/htad/32/75056_2.png) [@htad](https://forums.kodeco.com/u/htad)\
**Post date:** [April 22, 2018, 2:25pm UTC](https://forums.kodeco.com/t/introduction-to-google-maps-api-for-android-with-kotlin/38662/2 "2018-04-22T14:25:18Z")

</div>

How can I store more data in marker object ? I can not found any information about HashMap in Kotlin.

---

<div class="post-metadata">

**Author:** ![macsimus](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/macsimus/32/109104_2.png) [@macsimus](https://forums.kodeco.com/u/macsimus)\
**Post date:** [April 25, 2018, 11:22pm UTC](https://forums.kodeco.com/t/introduction-to-google-maps-api-for-android-with-kotlin/38662/3 "2018-04-25T23:22:25Z")

</div>

Thanks for the question, htad. You can use tags to add data to the marker. See more here: [Маркеры &nbsp;|&nbsp; Maps SDK for Android &nbsp;|&nbsp; Google Developers](https://developers.google.com/maps/documentation/android-api/marker)

Also, HashMap docs for Kotlin are here: [HashMap - Kotlin Programming Language](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-hash-map/index.html)

---

<div class="post-metadata">

**Author:** ![mgrint](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@mgrint](https://forums.kodeco.com/u/mgrint)\
**Post date:** [May 26, 2018, 2:04pm UTC](https://forums.kodeco.com/t/introduction-to-google-maps-api-for-android-with-kotlin/38662/4 "2018-05-26T14:04:58Z")

</div>

An excellent tutorial - thank you.

---

<div class="post-metadata">

**Author:** ![duk0h](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@duk0h](https://forums.kodeco.com/u/duk0h)\
**Post date:** [July 3, 2018, 9:26am UTC](https://forums.kodeco.com/t/introduction-to-google-maps-api-for-android-with-kotlin/38662/5 "2018-07-03T09:26:23Z")

</div>

how can i add location directions .ie enroute to the destination?

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 3, 2018, 11:44am UTC](https://forums.kodeco.com/t/introduction-to-google-maps-api-for-android-with-kotlin/38662/6 "2018-07-03T11:44:52Z")

</div>

@macsimus Can you please help with this when you get a chance? Thank you - much appreciated! :]

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 3, 2018, 12:19pm UTC](https://forums.kodeco.com/t/introduction-to-google-maps-api-for-android-with-kotlin/38662/8 "2018-07-03T12:19:04Z")

</div>

Opened on July 3, 2018, 12:19pm UTC



---

<div class="post-metadata">

**Author:** ![macsimus](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/macsimus/32/109104_2.png) [@macsimus](https://forums.kodeco.com/u/macsimus)\
**Post date:** [July 3, 2018, 3:16pm UTC](https://forums.kodeco.com/t/introduction-to-google-maps-api-for-android-with-kotlin/38662/9 "2018-07-03T15:16:14Z")

</div>

Thanks for the question, duk0h! It depends on your exact use case, but most likely you’re going to want to look at the Google Maps Directions API. You can find more info at:

> **[The Directions API demo  |  Google Developers](https://developers.google.com/maps/documentation/directions/start)**

It’s also possible to create your own routing on a custom map, if you have sufficient and accurate location data. You can then use the A\* algorithm, an extension of Dijkstra’s algorithm.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [October 9, 2018, 7:27pm UTC](https://forums.kodeco.com/t/introduction-to-google-maps-api-for-android-with-kotlin/38662/10 "2018-10-09T19:27:49Z")

</div>

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [October 9, 2018, 7:27pm UTC](https://forums.kodeco.com/t/introduction-to-google-maps-api-for-android-with-kotlin/38662/11 "2018-10-09T19:27:52Z")

</div>

Closed on October 9, 2018, 7:27pm UTC


