Skip to content

This project is about create a program that generate a chart of routes

License

Notifications You must be signed in to change notification settings

AbelMurgas/route-graph-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

route-graph-generator

This project is about create a program that generate a html graph of routes

Usage

The read .shp option conditions:

  • must have all .shp file and other important file (.prj,.cpg,.dbf,.xml,.shx) in shp path
newShape = Shape()
df_route = newShape.create_df_base()
if len(df_route) > 0:
    map_name = "map" # put file map name
    newMap = Map(df_route) 
    newMap.create_map()
    webbrowser.open_new_tab(map_name + ".html") # automatically open in browser

The read file with information option conditions:

  • csv
  • coords column: latitude, longitude
  • route column
  • other group (optional if want to separate the routem in stops)
  • important have the file outside of source path
df_route_name = "df_route.csv" # Name of the df_route file
df_route = pd.read_csv(df_route_name, delimiter=",")
if len(df_route) > 0:
    map_name = "map" # put file map name
    newMap = Map(df_route) 
    newMap.create_map()
    webbrowser.open_new_tab(map_name + ".html") # automatically open in browser

About

This project is about create a program that generate a chart of routes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages