Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are no data elements in the response JSON #127

Open
vptcnt opened this issue Jun 13, 2024 · 0 comments
Open

There are no data elements in the response JSON #127

vptcnt opened this issue Jun 13, 2024 · 0 comments

Comments

@vptcnt
Copy link

vptcnt commented Jun 13, 2024

Hello,

As a PTA member, I would like to make a map of the school address.

I just installed prettymaps, resolved the problem with usrlib, and try the example, but it doesn't work. I have an error

vincentm1@Vincents-MacBook-Air-M1 Development % python3
Python 3.9.6 (default, Oct 18 2022, 12:41:40) 
[Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import prettymaps
>>> plot = prettymaps.plot('Stad van de Zon, Heerhugowaard, Netherlands')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/vincentm1/Library/Python/3.9/lib/python/site-packages/prettymaps/draw.py", line 902, in plot
    gdfs = get_gdfs(query, layers, radius, dilate, -rotation)
  File "/Users/vincentm1/Library/Python/3.9/lib/python/site-packages/prettymaps/fetch.py", line 215, in get_gdfs
    gdfs.update({
  File "/Users/vincentm1/Library/Python/3.9/lib/python/site-packages/prettymaps/fetch.py", line 216, in <dictcomp>
    layer: get_gdf(layer, perimeter, **kwargs)
  File "/Users/vincentm1/Library/Python/3.9/lib/python/site-packages/prettymaps/fetch.py", line 168, in get_gdf
    graph = ox.graph_from_polygon(
  File "/Users/vincentm1/Library/Python/3.9/lib/python/site-packages/osmnx/graph.py", line 436, in graph_from_polygon
    G_buff = _create_graph(response_jsons, retain_all=True, bidirectional=bidirectional)
  File "/Users/vincentm1/Library/Python/3.9/lib/python/site-packages/osmnx/graph.py", line 554, in _create_graph
    raise EmptyOverpassResponse("There are no data elements in the response JSON")
osmnx._errors.EmptyOverpassResponse: There are no data elements in the response JSON

Could you help ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant