Python Forum
Folium map from another website
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Folium map from another website
#1
Is there a way to import map from this website in Python using folium or other packages? If not, what would be a good way to do this?

I was writing a Python script to get all the data for the map, and now that's done, I want to add the data to the map.

https://skyvector.com/

I can also download the charts from FAA if that would help with adding it to Python

https://www.faa.gov/air_traffic/flight_i...ducts/vfr/
Reply
#2
Any suggestions will be helpful. I'm sure I can plot the data on a normal map, but I'm trying to do it on an aviation sectional chart.
Reply
#3
You may find this helpful for mapping: https://python-awips.readthedocs.io/en/l...raphy.html
Reply
#4
I'm trying to save a folium map, but its not saving. I'm following the example from the link below. Any idea why?
import folium
m = folium.Map(location=[45.5236, -122.6750])
m.save('index.html')
https://python-visualization.github.io/f...start.html
Reply
#5
it's probably saving, just not where you expect it.
if you are on Linux, you can find it (although just about every web page has an index.html)
from a top directory, run (in terminal window):
find . -name 'index.html'
Reply
#6
I'm on Windows 10, and I'm saving it to the same directory as the python.
Reply
#7
Anything else I should try?
Reply
#8
I ran the script from CMD and it worked. I wonder why it didnt' work from my IDE, PyCharm Community Edition?
Reply
#9
when you are in your IDE, the Current Working Directory is not always your source directory.
Thus when you save a file it may be saved in another directory (the CWD).
you can assure that you are in your source directory by importing os, then adding the following code
after all of your current code (bottom of script), replacing mycode with actual class of function name.
This will assure file will be saved in source directory when run from IDE.
if __name__ == '__main__':
    import os
    os.chdir(os.path.abspath(os.path.dirname(__file__)))
    mycode()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Folium: Conflict with Font Awesome Kit jgomes_eu 0 1,182 Apr-23-2022, 03:18 PM
Last Post: jgomes_eu
  Folium import error kashif_flavio 2 3,567 Dec-07-2020, 08:58 AM
Last Post: bowlofred
  Showing only one country in Folium tantony 3 5,626 Nov-01-2019, 03:32 PM
Last Post: nilamo
  Map with folium vandelouw 0 2,214 Jun-29-2018, 08:36 PM
Last Post: vandelouw

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020