# How can I draw/plot directions on the map component?

**URL:** https://community.thunkable.com/t/how-can-i-draw-plot-directions-on-the-map-component/1877459
**Category:** Maps
**Created:** [May 16, 2022, 12:56am UTC](https://community.thunkable.com/t/how-can-i-draw-plot-directions-on-the-map-component/1877459 "2022-05-16T00:56:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ruba7salman7](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@ruba7salman7](https://community.thunkable.com/u/ruba7salman7)
#### Post date: [May 16, 2022, 12:56am UTC](https://community.thunkable.com/t/how-can-i-draw-plot-directions-on-the-map-component/1877459/1 "2022-05-16T00:56:06Z")

</div>

On the map how can i get a direction from my spot to the red marker that is the location that I want to arrive in it?

By using the letitude and lengtude from the firebase

What are the blocks that maybe used .

---

<div class="post-metadata">

### Author: ![paulovaz72](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/paulovaz72/32/119071_2.png) [@paulovaz72](https://community.thunkable.com/u/paulovaz72)
#### Post date: [May 16, 2022, 1:53am UTC](https://community.thunkable.com/t/how-can-i-draw-plot-directions-on-the-map-component/1877459/2 "2022-05-16T01:53:40Z")

</div>

Hello!

You need to use the Google or Apple Maps API in your APP, providing the georeference as parameters.

Please check this project as example:  
[Thunkable](https://x.thunkable.com/projects/616b10f535dec3001082b31e/SignIn/designer)

Regards,

Paulo Vaz

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [May 16, 2022, 6:23am UTC](https://community.thunkable.com/t/how-can-i-draw-plot-directions-on-the-map-component/1877459/3 "2022-05-16T06:23:48Z")

</div>

Welcome to Thunkable.

Google Maps has a function called direction service which you can use it through Web API to get a list of route points that you can draw on the map.

This is an example

```auto
https://maps.googleapis.com/maps/api/directions/json
  ?destination=37.773245%2C-122.469502
  &origin=37.773279%2C-122.468780
  &key=YOUR_API_KEY

```

You can see the documentation [here](https://developers.google.com/maps/documentation/directions/get-directions)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [August 14, 2022, 6:24am UTC](https://community.thunkable.com/t/how-can-i-draw-plot-directions-on-the-map-component/1877459/4 "2022-08-14T06:24:40Z")

</div>

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