# Error when bbox is a variable

**URL:** <https://forum.mapillary.com/t/error-when-bbox-is-a-variable/7187>\
**Category:** Imagery, data, and integrations\
**Created:** [July 18, 2023, 2:30pm UTC](https://forum.mapillary.com/t/error-when-bbox-is-a-variable/7187 "2023-07-18T14:30:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvarosilva](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@alvarosilva](https://forum.mapillary.com/u/alvarosilva)\
**Post date:** [July 18, 2023, 2:30pm UTC](https://forum.mapillary.com/t/error-when-bbox-is-a-variable/7187/1 "2023-07-18T14:30:49Z")

</div>

Hi,  
I am trying to get all traffic signs and points along a route. I have tried using “map\_features\_in\_geojson”, which gave me an error, so I am trying another approach.

I have created a number of bbox around the route and my plan was to loop through them and use the “traffic\_signs\_in\_bbox” and “map\_feature\_points\_in\_bbox” functions".

This works: traffic\_signs\_in\_bbox({‘west’: 8.12408, ‘south’: 43.99948, ‘east’: 8.17408, ‘north’: 44.04948}).

But this doesn’t work:

bbox = {‘west’: 8.12408, ‘south’: 43.99948, ‘east’: 8.17408, ‘north’: 44.04948}  
traffic\_signs\_in\_bbox(bbox)

And this is problematic, as I cannot loop through my bboxes. Error below.

I hope you can help, thanks!

 ![image](https://us1.discourse-cdn.com/flex015/uploads/mapillary/original/3X/e/f/ef22578c316f290ab27e77be202b8a8d3030df75.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/mapillary/original/3X/3/b/3bdc5db571928f1af42a7511317921838baebd8d.jpeg)
