SimeMobileCity 0.1
  • API
  • Workflow
  • Site
    • Page
        • Poi

    Poi¶

    class simemobilecity.poi.Poi(topo, tags, p, radius=200, max_dist=500)¶

    This class defines a point of interest.

    Parameters:
    topo : Topology

    Topology object

    tags : Dictionary

    OSM tags in format - tags={“amenity”: [“cafe”]}

    p : dictionary, float

    Probability each hour each weekday, either a float for the same probability each hour, dictionary of hours for same hour distribution for all days, a dictionary of days for the same hour probability for different days, or a dictionary of days each with a dictionary of hours

    radius : float, optional

    Distance of nodes from poi center in m

    max_dist : float, optional

    Maximal allowed distance from charging station poi in m

    Methods

    __repr__() Create a pandas table of the probability data.
    get_G() Get OSM graph object.
    get_tags() Return OSM tags.
    get_max_dist() Get maximal allowed distance from charging station to POI.
    get_nodes() Get list of nodes of graph.
    get_p() Return complete probability dictionary.
    get_p_day(day) Return probability for a day.
    get_p_hour(day, hour) Return probability for an hour.
    get_topo() Return Topology object.
    set_max_dist(val) Set maximal allowed distance from charging station to POI.
    set_p(p) Set complete probability dictionary.
    set_p_day(day, val) Set probability for a day.
    set_p_hour(day, hour, val) Set probability for an hour.

    Back to top

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