Live data from Hacker News

Show HN: OpenFreeMap – Open-Source Map Hosting

openfreemap.org

231–240 of 243 posts

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#231
post #133

Something I'd be willing to pay for is historical tiles/data. I'm writing an application that lets you view historical data, and the problem is that most/all map services show only current data. It would be nice if the map reflected the year of the data we're layering on top. So if you want to make some money, there's an option for you!

Maybe not exactly what you had in mind (sounds more like a street view-like timeline of changes, if I understand you correctly), but

https://maps.arcanum.com/

has a great selection of historical maps.

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#232

Neat! We used to host our own mbtiles map for like $11/mo, but the problem was (this was prior to planetiler and people generating public worldwide mbtile dumps) there wasn't a free/cheap source for regularly-updated mbtiles. The dump from OpenMapTiles was not updated for years. So we gave up and went to mapbox, where we regularly exceed the monthly free tier for web, but they give us a discount. Because that is a sc…

Look into Planetiler [1]. It's a resource-efficient and easy to setup project to generate mbtiles or pmtiles from OSM pbf files, which are free to download from Geofabrik. It uses the openmaptiles spec for the result files and you can also generate some custom tiles by writing yaml (or forking the java source).

Protomaps also provides daily updated full-planet pmtiles [2], from which you can create a pmtiles extract using its CLI.

[1] https://github.com/onthegomap/planetiler [2] https://docs.protomaps.com/basemaps/downloads

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#233
post #224

Earlier quoted context omitted.

If you live in the US, you can get parcel information from your local tax assessor's website, usually. Sometimes it's devoid of owner information. Such cases usually require going to a company like ReGrid or Corelogic to purchase the data. I work for a company (onXmaps) which produces user-friendly maps of such information. You could use our app to create such a "rolodex" of your neighborhood, by annotating individua…

Thanks, Tony! I’m actually an Elite member of the off-road flavor! Is your recommendation to essentially use waypoints for the info? In my mind I’d really like to host my own map which neighbors could share, just starting from a baseline of parcel boundaries and a way to drop info on each plot (onX does this wonderfully already). Back in the day, my mom would make a little neighborhood diagram using MS Publisher and…

nice! yes, that's what I was suggesting for sure. You could put waypoints with contact info in a folder, and share that? Wouldn't obviously be useful for people without the apps.

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#234

Earlier quoted context omitted.

To be clear, OpenMapTiles is kept up-to-date. The latest version was published in April: https://www.maptiler.com/news/2024/04/openstreetmap-data-pre...

I think he was referring to a freely available full planet OSM mbtiles dump, to be used with OpenMapTiles. I cannot find a reference to that in your blog post.

Ha, yes, obviously I was referring to the free mbtiles download. Maptiler is currently showing "2020 OpenStreetMap Vectors only"

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#235

Earlier quoted context omitted.

So a full planet OSM extract is about 300 million binary files, in total about 90 GB. The most popular ways to store it: - MBTiles - an SQLite file, each file is a row in a table, you need a server to serve it. - PMTiles - a single file, optimised for serverless usage. - Extract them into a directory, which in practice should be on a partition image. This is the approach I choose. I tested ext4 and Btrfs and I choose…

I apologize if this is something stupid, or answered elsewhere, but is there a good way to trim Planet down to a smaller area? I've been making some custom map stuff for mountain bike trails and I'd really like to move to self-hosted vector tiles for all layers, but too much of what I find says to start with Planet.osm when all I really need is a State (in the US) or even a few-miles-wide area. (My goal is to basical…

Look into Planetiler [1] (which OP uses for tile generation). It supports downloading regions that are listed on Geofabrik [2] and converting them to mbtiles or pmtiles. Geofabrik has separate extracts for all US states, for example. If you need to extract an even smaller area from that result, GDAL has support for mbtiles so you could use gdalwarp [3] to extract a new mbtiles file out of it using bounds.

Another option is to use the extract functionality in pmtiles [4] to extract your area of interest from their daily full-planet pmtiles builds. You can then statically host that file and use that in your client with one of their client libraries.

[1] https://github.com/onthegomap/planetiler

[2] https://download.geofabrik.de/

[3] https://gdal.org/en/latest/programs/gdalwarp.html

[4] https://docs.protomaps.com/pmtiles/cli#extract

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#236
post #184

Thank you so much for sharing the setup and the hosted service. I'm a little curious about the setup bit for (self) hosting - it's essentially a series of bespoke python scripts? Not cloud init, not Ansible - and not shell scripts - nor Terraform/tofu. Would love to hear a few thoughts of how you arrived at this setup - and if you re-use parts for other projects?

Thanks! It's not so bespoke, it's Fabric ( https://www.fabfile.org/ ), it's been around at least since 2011, but probably much longer, since they already had 1.2.0 in 2011. It's a super reliable script for setting up servers over SSH. Yes, you run the same commands you'd type in a terminal, works perfectly.

Thanks for clearing that up - it wasn't obvious to me at a glance.

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#237
post #229

I created a similar project, https://serverlessmaps.com which lets you host PMTiles on S3 and CloudFront, with a Lambda@Edge layer where you could also do auth... With 1TB free traffic from the CDN, and pretty small costs for S3 and Lambda@Edge, it's probably even cheaper to self-host I guess. Even lower costs would be possible by entirely using CloudFlare services (CDN, R2)...

Replace lambda by DBOS and you'll cut down the cost by 15x, at least, and save you a lot of time developing (SAML sucks)

That's a complete other topic. DBOS also doesn't fit in this stack. And what has SAML to do with it?

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#238
This looks really interesting. It might be a viable replacement for the back-end of an app I am working on that provides navigation for visually impaired people through spacialized sound. https://github.com/soundscape-community/soundscape

The back-end is currently based on a postgis database and a python app serving geojson tiles at zoom level 16. It currently runs on a single Hetzner server due to the resource requirements of imposm which is used to import the data into the database. Reducing hosting costs would really help us to insure the long term sustainability of the app.

I don't know yet how different the schema is and how easy it will be to support.

Soundscape was originally a Microsoft research project but they open sourced it when they shut down the app last year.

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#239
post #133

Something I'd be willing to pay for is historical tiles/data. I'm writing an application that lets you view historical data, and the problem is that most/all map services show only current data. It would be nice if the map reflected the year of the data we're layering on top. So if you want to make some money, there's an option for you!

Have you heard of: https://www.openhistoricalmap.org I don't think you can pay for it, but I'm sure they'd accept donations!

Ah, wonderful -- thank you

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#240
post #198

Earlier quoted context omitted.

That's an interesting claim. I make range requests to 100GB+ files (genomics) all the time for work and it works great. I've never considered total file size as directly related to latency in this respect, assuming you have some sort of an index of course.

You can test this claim directly against a AWS S3 bucket. First 100KB of a 100GB+ file: curl -H "Range: bytes=0-100000" https://overturemaps-tiles-us-west-2-beta.s3.amazonaws.com/2... --output tmp -w "%{time_total}" First 100KB at the 100GB mark: curl -H "Range: bytes=100000000000-100000100000" https://overturemaps-tiles-us-west-2-beta.s3.amazonaws.com/2... --output tmp -w "%{time_total}"

[deleted]
Post reply on HN