# Download Mapilarry traffic signs with API v4

**URL:** <https://forum.mapillary.com/t/download-mapilarry-traffic-signs-with-api-v4/5353>\
**Category:** Map data and detections\
**Created:** [September 12, 2021, 5:56pm UTC](https://forum.mapillary.com/t/download-mapilarry-traffic-signs-with-api-v4/5353 "2021-09-12T17:56:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmiroshn](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@rmiroshn](https://forum.mapillary.com/u/rmiroshn)\
**Post date:** [September 12, 2021, 5:56pm UTC](https://forum.mapillary.com/t/download-mapilarry-traffic-signs-with-api-v4/5353/1 "2021-09-12T17:56:56Z")

</div>

Hello, I don’t get how to download for example yields or stop signs in bbox area using python.

Previous code on puthon don’t work.

Can somebody help me please?  
Thank you!

---

<div class="post-metadata">

**Author:** ![jorrarro](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/jorrarro/32/70811_2.png) [@jorrarro](https://forum.mapillary.com/u/jorrarro)\
**Post date:** [September 12, 2021, 6:08pm UTC](https://forum.mapillary.com/t/download-mapilarry-traffic-signs-with-api-v4/5353/2 "2021-09-12T18:08:06Z")

</div>

You can use this:

> <https://github.com/taneljairus/random-mapillary-stuff/blob/master/mapillary_v4_downloader.py>

Use the layer mly\_map\_feature\_traffic\_sign.

---

<div class="post-metadata">

**Author:** ![rmiroshn](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@rmiroshn](https://forum.mapillary.com/u/rmiroshn)\
**Post date:** [September 12, 2021, 6:14pm UTC](https://forum.mapillary.com/t/download-mapilarry-traffic-signs-with-api-v4/5353/3 "2021-09-12T18:14:47Z")

</div>

I am sorry, but I dont get how to change your code.  
Can you make it once for me, please?

I want to download all detections with Yield signs on this location bbox = ‘28.9991,49.6265,31.9874,51.3965’  
and save outfile in json format on my local disk for example here: E:/yield\_folder/yield\_traffic\_sign.geojson’

---

<div class="post-metadata">

**Author:** ![jorrarro](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/jorrarro/32/70811_2.png) [@jorrarro](https://forum.mapillary.com/u/jorrarro)\
**Post date:** [September 12, 2021, 6:26pm UTC](https://forum.mapillary.com/t/download-mapilarry-traffic-signs-with-api-v4/5353/4 "2021-09-12T18:26:27Z")

</div>

You have to change these lines:

```auto

MAP_ACCESS_TOKEN = "MLY|1234567899" ##Put your API key here
outputfolder = "/tmp/mapillary" ##Your output folder here
ll_lat = 59.46032 ##Lower left LAT
ll_lon = 24.47499 ##Lower left LON
ur_lat = 59.70013 ##Upper right LAT
ur_lon = 25.10291 ##Upper right LON

```

Example here:[random-mapillary-stuff/mapillary\_v4\_downloader\_example.py at master · taneljairus/random-mapillary-stuff · GitHub](https://github.com/taneljairus/random-mapillary-stuff/blob/master/mapillary_v4_downloader_example.py)

All you need to do on that one is add your own API key.

---

<div class="post-metadata">

**Author:** ![rmiroshn](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@rmiroshn](https://forum.mapillary.com/u/rmiroshn)\
**Post date:** [September 12, 2021, 8:27pm UTC](https://forum.mapillary.com/t/download-mapilarry-traffic-signs-with-api-v4/5353/5 "2021-09-12T20:27:10Z")

</div>

Thank you a lot!  
With help of this script I can download _ **all** _ traffic signs!  
Is it possible to specify to download only **regulatory–yield–g1** from traffic sign group?

---

<div class="post-metadata">

**Author:** ![jorrarro](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/jorrarro/32/70811_2.png) [@jorrarro](https://forum.mapillary.com/u/jorrarro)\
**Post date:** [September 13, 2021, 4:26am UTC](https://forum.mapillary.com/t/download-mapilarry-traffic-signs-with-api-v4/5353/6 "2021-09-13T04:26:50Z")

</div>

There is no filtering on server side, so you can only download the whole dataset. It is possible to not store the other signs after downloading, but unless the files get too large to handle, it’s better to filter the output file afterwards.

---

<div class="post-metadata">

**Author:** ![rmiroshn](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@rmiroshn](https://forum.mapillary.com/u/rmiroshn)\
**Post date:** [September 13, 2021, 9:17am UTC](https://forum.mapillary.com/t/download-mapilarry-traffic-signs-with-api-v4/5353/7 "2021-09-13T09:17:14Z")

</div>

Thank you a lot!  
You realy help me!
