# Display A list of Map markers

**URL:** https://community.thunkable.com/t/display-a-list-of-map-markers/390893
**Category:** Questions about Thunkable X
**Tags:** map
**Created:** [January 4, 2020, 12:13am UTC](https://community.thunkable.com/t/display-a-list-of-map-markers/390893 "2020-01-04T00:13:03Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![lukejamison0rowvo](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@lukejamison0rowvo](https://community.thunkable.com/u/lukejamison0rowvo)
#### Post date: [January 4, 2020, 12:13am UTC](https://community.thunkable.com/t/display-a-list-of-map-markers/390893/1 "2020-01-04T00:13:03Z")

</div>

Hello, I want to get a list of LAT/LNG from an API and then display them on a map. Any suggestions on how I can do this? My data is returned like such,  
`{ "data": [{ "address_lat": 33.000, "address_lng": -117.111 }] }`

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [January 4, 2020, 12:58am UTC](https://community.thunkable.com/t/display-a-list-of-map-markers/390893/2 "2020-01-04T00:58:41Z")

</div>

Hey @lukejamison0rowvo,

You can use the [object](https://docs.thunkable.com/objects) blocks to parse your JSON, save the coords to a [list](https://docs.thunkable.com/lists) and then display them on a [map](https://docs.thunkable.com/map).

Here’s a simple example to guide you:

> [@Cartographr: How to work with the Map Component](http://community.thunkable.com/t/cartographr-how-to-work-with-the-map-component/230549):
>
> Click to Add Markers One request we hear from Thunkers is the ability to tap on the map component and then add a marker to the location that was just tapped. In this first example we’ll learn how to do just that. Map1.onPress This is the event we need to understand to make everything work. The onPress event has two outputs, coordinate and position - but other than the names of these outputs we don’t know much more about them. Since coordinate seems like the most promising, let’s take a closer l…

Let us know if there’s anything else we can do to help!

---

<div class="post-metadata">

### Author: ![lukejamison0rowvo](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@lukejamison0rowvo](https://community.thunkable.com/u/lukejamison0rowvo)
#### Post date: [January 5, 2020, 7:07am UTC](https://community.thunkable.com/t/display-a-list-of-map-markers/390893/3 "2020-01-05T07:07:58Z")

</div>

@domhnallohanlon Thanks for the reply but is not working I can’t seem to get all the LAT/LNG from the API and display them on a map. I think the issue is with returning the data from the API. Any suggestions?

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [January 6, 2020, 10:39pm UTC](https://community.thunkable.com/t/display-a-list-of-map-markers/390893/4 "2020-01-06T22:39:35Z")

</div>

It might be the API @lukejamison0rowvo?

Which API are you using?

---

<div class="post-metadata">

### Author: ![lukejamison0rowvo](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@lukejamison0rowvo](https://community.thunkable.com/u/lukejamison0rowvo)
#### Post date: [January 6, 2020, 10:57pm UTC](https://community.thunkable.com/t/display-a-list-of-map-markers/390893/5 "2020-01-06T22:57:32Z")

</div>

@domhnallohanlon I’m using the Detrack API documented here [Detrack API docs](https://detrackapiv2.docs.apiary.io/#reference/jobs/jobs-collection/list-all-jobs)

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 11:46am UTC](https://community.thunkable.com/t/display-a-list-of-map-markers/390893/6 "2024-11-08T11:46:09Z")

</div>


