-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
23,594 additions
and
174,531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
key values group influence range | ||
amenity kindergarten education 3 2000 | ||
amenity school,music_school,language_school education 5 3000 | ||
amenity university,college education 20 10000 | ||
amenity library education 5 1000 | ||
amenity restaurant,fast_food restaurants 5 750 | ||
amenity food_court restaurants 15 1000 | ||
amenity pub,bar entertainment 5 750 | ||
amenity cafe,ice_cream restaurants 5 750 | ||
amenity bank,atm shopping 1 750 | ||
amenity parking parking 5 250 | ||
parking * parking 5 250 | ||
amenity bus_station transport 5 300 | ||
public_transport station transport 5 300 | ||
railway station transport 10 700 | ||
aeroway aerodrome,terminal transport 15 1000 | ||
public_transport stop_position transport 5 300 | ||
railway tram_stop transport 5 300 | ||
amenity clinic,doctors,dentist healthcare 10 500 | ||
healthcare * healthcare 10 500 | ||
amenity pharmacy healthcare 5 500 | ||
amenity hospital healthcare 20 1000 | ||
amenity cinema,theatre,arts_centre entertainment 20 1000 | ||
amenity nightclub entertainment 10 800 | ||
shop * shopping 5 500 | ||
amenity marketplace shopping 10 800 | ||
leisure garden,park,dog_park leisure 5 500 | ||
leisure sports_centre,sports_hall,stadium,track,pitch,horse_riding,swimming_pool,fitness_centre,fitness_station leisure 5 800 | ||
sport fitness leisure 5 800 | ||
landuse recreation_ground,winter_sports leisure 5 1500 | ||
tourism * leisure 5 1500 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
### How to visualize the data | ||
|
||
``` | ||
using PyCall | ||
using Colors | ||
using OSMToolset | ||
file = sample_osm_file() | ||
df = find_poi(file) | ||
ix = AttractivenessSpatIndex(df); | ||
flm = pyimport("folium"); | ||
colrs = distinguishable_colors(length(ix.measures), [RGB(0.1,0.2,0.4)]) | ||
class2col = Dict(ix.measures .=> colrs); | ||
m = flm.Map(tiles = "Stamen Toner") | ||
line = 0 | ||
for row in eachrow(df) | ||
line += 1 | ||
info = "$(row.group):$(row.key)=$(row.value)" | ||
k = findfirst(==(Symbol(row.group)), ix.measures) | ||
flm.Circle((row.lat, row.lon), color="#$(hex(colrs[k]))",radius=row.influence, | ||
fill_color="#$(hex(colrs[k]))", fill_opacity=0.06, tooltip=info).add_to(m) | ||
end | ||
bb = getbounds(file) | ||
bounds = [(bb.minlat, Float64(bb.minlon)), (bb.maxlat, Float64(bb.maxlon))] | ||
m.fit_bounds(bounds) | ||
flm.Rectangle(bounds, color="blue",weight=2).add_to(m) | ||
m | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.