Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAirport.geoencode not working #102
Comments
|
Thank you Sasha for your interest in the library. About your problem, I suspect a problem in your Jupyter configuration, unrelated to the traffic library. Could you check whether a regular altair sample code works properly? |
|
Thank you Xavier for your support. Also, the airports.geonencode request seems the only not working. The other plot like Flight Information Region work. What is weird is that I have exactly the same trouble using google colab or python on my desktop. I am using version 4.1 of altair Thank you :) |
|
On my side, it seems that the CSV file from ourairports.com is now empty! (an issue on their side) Can you try Xavier |
|
The problem seems fixed on the ourairports.com side and I was able to reproduce the issue you mentioned. For now you can do airports["JFK"].geoencode(False, True, True) But there seems to be a bug with the full openstreetmap layout. I will investigate that. |
|
Thank you for your help Xavier. In the meantime, I troubleshooted the bug using python on my desktop (Spyder) with the altair_viewer library. The graphs are being displayed on a local webpage and it works fine. Thanks again, |
|
Following up, it seems there is an issue with altair and Polygons which appear as big full squares. LineStrings work fine. I am still not sure whether the geojson is faulty (e.g. |
|
At Version 2.3 @xoolive's temporary solution worked. It's just missing the Layout of OSM.
But in the current commit 95e9ff5 it seems the method something with the definition of geoencode() went wrong.
|
|
woops, thanks @develmusa ! In the meantime, I changed default parameters for airports, without OSM layout, but with runways and labels. Will revert when things get clearer with altair and polygons. Closing for now then, sorry for the inconvenience |
|
@develmusa @sashamadar found out the issue by chance today (the best way to solve problems is probably to not try...), reopening then pushing a fix |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.


Hi,
The request to get the airport details using airports["JFK"].geoencode(runways=True, labels=True) does not work. It outputs a blank cell on jupyter or colab notebook. I have tried running this command before and it used to work (a couple of months ago).
Thank you for the help,
Sasha