Re:Show HN: AgentMaps – Turn maps into living societies
by andrewtable on Tuesday September 04, 2018 @08:22PM
(#17914065)
I wish! Unfortunately, as far as I know, OSM building vectors aren't available for the vast majority of suburbs in the US/world, which is where I think AgentMaps would be most useful.
There's some paid services like http://osmbuildings.org but they're just as limited... and paid!!
I also didn't want to rely on a paid provider: that's why I chose Leaflet/OSM instead of Google maps, which has polygons for buildings. I felt pretty vindicated a few months later when they (apparently) raised their prices ~1400%, though!
Microsoft did release this (https://blogs.bing.com/maps/2018-06/microsoft-releases-125-m...), and I thought it'd have a lot more coverage. But their blog post makes it sound like it's already been integrated with OSM, which doesn't seem to have those hoped for polygons.
I was wary about generating houses just from the street vectors at first, and wasn't sure how I would even do it, but it ended up working out! They also made translating positions within units (like (1,1) for the back corner) convenient, which makes navigating agents around a lot easier.
So I'm less disappointed about the lack of building polys in OSM than I was at the beginning. I might say it kind of benefited me, even!
Re:Show HN: AgentMaps – Turn maps into living societies
by andrewtable on Thursday September 06, 2018 @08:58AM
(#17925885)
I wanted to make it as accessible to use as possible, and especially didn't want any download requirements other than a web browser. Maybe for better performance some of the processing could be offloaded to Python, though.
It turned out that wasn't possible!
So for the last few months I've been working on AgentMaps to solve the problem of making accessible, map-based agent simulations.
I hope you like it, thanks for looking!
It's pretty easy to do:
http://overpass-turbo.eu/s/BDR
(Note that Overpass Turbo is an IDE for Overpass-API, you can directly query the api without using Turbo)
There's some paid services like http://osmbuildings.org but they're just as limited... and paid!!
I also didn't want to rely on a paid provider: that's why I chose Leaflet/OSM instead of Google maps, which has polygons for buildings. I felt pretty vindicated a few months later when they (apparently) raised their prices ~1400%, though!
Microsoft did release this (https://blogs.bing.com/maps/2018-06/microsoft-releases-125-m...), and I thought it'd have a lot more coverage. But their blog post makes it sound like it's already been integrated with OSM, which doesn't seem to have those hoped for polygons.
I was wary about generating houses just from the street vectors at first, and wasn't sure how I would even do it, but it ended up working out! They also made translating positions within units (like (1,1) for the back corner) convenient, which makes navigating agents around a lot easier.
So I'm less disappointed about the lack of building polys in OSM than I was at the beginning. I might say it kind of benefited me, even!
The MS buildings haven't been merged yet.
And that sounds like a good idea. If I don't do it soon, feel free to implement it as an extension and I'll link to it from the AgentMaps repo!
There will be traffic on https://lists.openstreetmap.org/listinfo/imports and some pages on the OpenStreetMap wiki at some point.