Returns the minimal and maximal values of bus longitude and latitude coordinates contained a dictionary. An offset can be used to arbitrarily increase the area.
=#
function _get_pg_area(pos::Dict{Int64,Tuple{Float64,Float64}},offset=0.)
locs=collect(values(pos))
lon_min=minimum(p->p[1],locs)-offset
lon_max=maximum(p->p[1],locs)+offset
lat_min=minimum(p->p[2],locs)-offset
lat_max=maximum(p->p[2],locs)+offset
returnlon_min,lon_max,lat_min,lat_max
end
function _get_pg_area(network_data::Dict{String,<:Any},offset=0.)
pos=Dict(
b["index"]=>(b["bus_lon"],b["bus_lat"])
forbincollect(values(network_data["bus"]))
)# geographic bus locations
return_get_pg_area(pos,offset)
end
#=
Returns a dictionary of default plot settings for various plotting functions.