# How to draw a circle of 500m away from a point on a map? or how to highlight all connected ways?

**URL:** <https://discourse.julialang.org/t/how-to-draw-a-circle-of-500m-away-from-a-point-on-a-map-or-how-to-highlight-all-connected-ways/98093>\
**Category:** Visualization\
**Tags:** question, package, map, openstreetmapx\
**Created:** [April 29, 2023, 5:10pm UTC](https://discourse.julialang.org/t/how-to-draw-a-circle-of-500m-away-from-a-point-on-a-map-or-how-to-highlight-all-connected-ways/98093 "2023-04-29T17:10:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Optimization](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/optimization/32/32462_2.png) [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Post date:** [April 29, 2023, 5:10pm UTC](https://discourse.julialang.org/t/how-to-draw-a-circle-of-500m-away-from-a-point-on-a-map-or-how-to-highlight-all-connected-ways/98093/1 "2023-04-29T17:10:47Z")

</div>

Is it possible to draw a circle around a coordinates? I knew that with folium one can plot a points on a map:

```julia
using OpenStreetMapX
using PyCall

points = LLA(43.658813, -79.397574, 0.0)

using PyCall
flm = pyimport("folium") #note that this requires folium to be installed
m = flm.Map()

flm.CircleMarker((point.lat, point.lon),
        tooltip="Here is the Fields Institute"
    ).add_to(m)
MAP_BOUNDS = [Tuple(m.get_bounds()[1,:].-0.005), Tuple(m.get_bounds()[2,:].+0.005)]

m.fit_bounds(MAP_BOUNDS)

m

```

This shows the map and the points. How to make a circle of 500m big around this point? Or is it possible to highlight all highway roads that are connedted to this point up until 500 meter away from it?

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [April 29, 2023, 5:52pm UTC](https://discourse.julialang.org/t/how-to-draw-a-circle-of-500m-away-from-a-point-on-a-map-or-how-to-highlight-all-connected-ways/98093/2 "2023-04-29T17:52:12Z")

</div>

isn’t that a pure python question? `folium` is not a Julia package

---

<div class="post-metadata">

**Author:** ![Optimization](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/optimization/32/32462_2.png) [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Post date:** [April 29, 2023, 8:31pm UTC](https://discourse.julialang.org/t/how-to-draw-a-circle-of-500m-away-from-a-point-on-a-map-or-how-to-highlight-all-connected-ways/98093/3 "2023-04-29T20:31:54Z")

</div>

@jling I’m not familir with folium. I guess it’s a python package. But Julia has `pyimport`  
Indeed it makes no different for me whether follium or osmx itself. I’m curious to know how to draw a circle around a point or identify and highlite all ways crossing that points.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [April 30, 2023, 1:53am UTC](https://discourse.julialang.org/t/how-to-draw-a-circle-of-500m-away-from-a-point-on-a-map-or-how-to-highlight-all-connected-ways/98093/4 "2023-04-30T01:53:14Z")

</div>

An example with 5000 km radius

```julia
using GMT

coast(region=:global, proj=:eqc, coast=true)
plot!([-9 39], symbol=(symb="Ellipse", size="5000k"), fill="lightgreen@50", show=true)

```

 ![GMTjl_j](https://global.discourse-cdn.com/julialang/original/3X/d/6/d611593a2f4a517f3768cbcb8d9452785d93a09c.png)

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [April 30, 2023, 2:35am UTC](https://discourse.julialang.org/t/how-to-draw-a-circle-of-500m-away-from-a-point-on-a-map-or-how-to-highlight-all-connected-ways/98093/5 "2023-04-30T02:35:40Z")

</div>

> [@Optimization](#):
>
> But Julia has `pyimport`  
> Indeed it makes no different for me whether follium or osmx itself.

think about what’s the implication of this, because Julia has `pyimport`, Julia need to answer all python’s usage questions? I’m just saying you’re using a Python package so Julia discourse is likely not the most helpful place to ask usage question.

OTOH, if you’re willing to switch to a Julia package, this is a great place to ask questions

---

<div class="post-metadata">

**Author:** ![Optimization](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/optimization/32/32462_2.png) [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Post date:** [April 30, 2023, 12:42pm UTC](https://discourse.julialang.org/t/how-to-draw-a-circle-of-500m-away-from-a-point-on-a-map-or-how-to-highlight-all-connected-ways/98093/6 "2023-04-30T12:42:36Z")

</div>

Yes @jling you are right. Thanks 🙂
