SimeMobileCity 0.1
  • API
  • Workflow
  • Site
    • Page
        • Topology

    Topology¶

    class simemobilecity.topology.Topology(loc, is_log=True)¶

    This class is a python wrapper for the osmnx package. The input is a dictionary containing the location name name, and optionally preloaded graph G and projection objects Gp.

    Parameters:
    loc : dictionary

    Location for simulation as dictionary {“name”: “”, “G”: None, “Gp”: None}

    is_log : bool, optional

    True to print osmnx console output

    Methods

    charging_station([tags]) Create charging station graph and capacity dictionaries.
    dist(orig, dest[, is_route]) Calculate the distance between two locations
    dist_poi(orig, poi) Calculate the distance to nearest poi node.
    get_G() Get OSM graph object.
    get_Gp() Get OSM graph projection object.
    get_nodes() Get list of nodes of graph.
    plot([pois, routes, ax, kwargs]) Plot graph optionally with chargin stations and routes.
    poi(tags[, radius, is_gdf]) Get nodes for given point of interest.
    radius(node, radius) Find nodes within radius of given node.

    Back to top

    © Copyright 2021, Hamzeh Kraus.
    Created using Sphinx 1.6.6.