Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ellenhp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
ellenhp
3y ago
I think I priced Nominatim on EC2 and it came in around $350/mo because you need 64GB of RAM. Also on EC2 Pelias ended up being close to $100/mo. Keep in mind that I'm including EBS prices for around 500gb of storage for both
32.
▲
Show HN: Host a planet-scale geocoder for $10/mo
(blog.ellenhp.me)
127 points
by
ellenhp
3y ago
|
34 comments
33.
▲
by
ellenhp
4y ago
Headway maintainer here. You don't need 10T of nvme storage unless you want to try and build tiles, a routing graph and a search index for the full planet without using a deduplicated filesystem. Eventually I hope to eliminate the need
34.
▲
by
ellenhp
4y ago
With PMTiles that's very likely to come in at close to free.
35.
▲
by
ellenhp
4y ago
OTP is a resource hog (for good reason, it solves a harder problem than valhalla). Covering a US state is very much pushing it for OTP, and covering the planet wouldn't work at all on any hardware. I didn't use OTP's frontend
36.
▲
by
ellenhp
4y ago
I'm using OSM Liberty [1] so as far as I know I should be just tracking upstream with most of these issues, but I think some of them might actually be introduced by planetiler [2]. Thanks for giving it such a detailed look though. [1]
37.
▲
by
ellenhp
4y ago
During data preprocessing it all comes from the same OSM extract, except for Pelias which also pulls data in from Who's On First, and Planetiler which also pulls data in from Natural Earth (and a few other sources). At runtime tiles ar
38.
▲
by
ellenhp
4y ago
Headway was designed more for consumer use-cases than anything else. There's been some talk of adding the ability to customize it in the future but I don't have time for that because I need to focus on the basics first. You could
39.
▲
by
ellenhp
4y ago
Nominatim requires a lot of resources for full planet installs. I'd recommend looking into Pelias or Photon instead. They're both amazing. Headway has used both of them at various points. Photon is definitely easier to set up for
40.
▲
by
ellenhp
4y ago
I cover that in the readme, but the short answer is that the server running maps.earth has 64GB of RAM and 6 physical cores. It's using about 600GB of disk space, but the disk usage might change because I suspect my Pelias index is mis
41.
▲
by
ellenhp
4y ago
It's... complicated. The discussion for it is here, I'd be curious if you had any thoughts in particular about this. Feel free to comment or join the headway Matrix room if you want to chat more in-depth. In principle I'm ope
42.
▲
by
ellenhp
4y ago
That's mostly because I decided to use maps from the daylight maps distribution. The current tiles were actually built last night. I think it probably makes sense to track planet.osm.pbf directly though because I want to create a virtu
43.
▲
by
ellenhp
4y ago
Is there a contact point you'd prefer me to use for reaching out? I'm pretty sure I'm using WOF for bringing up Pelias but it's entirely possible I'm configuring things wrong. I'm also having a lot of trouble g
44.
▲
by
ellenhp
4y ago
If you do spin one up, feel free to join the matrix and share the experience or just email me with feedback. I'm trying to get this as frictionless as possible to set up because I want people to own their own location data. Headway is
45.
▲
by
ellenhp
4y ago
This is tracked here: https://github.com/headwaymaps/headway/issues/85 It's going to be somewhat tricky because of a few mediocre decisions I made early on in the development process, but if you were up
46.
▲
by
ellenhp
4y ago
I wasn't happy with cycling directions in GraphHopper and I was having trouble getting route shapes from its routing endpoint which made it really difficult to plot route polylines on the map. I've also been looking forward to exp
47.
▲
by
ellenhp
4y ago
To add onto this, those are raster tiles and the industry is moving away from raster tiles for a multitude of reasons. Headway doesn't bulk-download tiles from OSM, by default it takes an OSM extract from BBBike (with explicit permissi
48.
▲
by
ellenhp
4y ago
Unfortunately no. maplibre-gl-js requires webgl for vector tile rendering. That's how you get snappy zoom performance, reduce the load on the end-user's cellular connection, etc. Sick phone though I'm a little bit jealous :)
49.
▲
by
ellenhp
4y ago
Yup! That's how most people run Headway right now. You can probably get by with around 2GB of RAM for a medium-sized metro, possibly even less. Also for full-planet requirements, the OVH box running maps.earth has 64GB of RAM and 6 phy
50.
▲
by
ellenhp
4y ago
Yeah, I've noticed that at least the way Pelias is configured in Headway, searches for administrative areas don't seem to work, like at all. I'm not sure if that's a config issue or an issue with Pelias though. Address s
51.
▲
by
ellenhp
4y ago
Thank you for the feedback :)
52.
▲
by
ellenhp
4y ago
The search box in the top left should bring up a bunch of autocomplete suggestions when you type stuff into it. Clicking on one brings up a place card view [1]. If my demo server falls over that will fail to populate. Once you have a place
53.
▲
by
ellenhp
4y ago
It's a self-hostable web maps stack trying to be an open-source alternative to Google Maps.
54.
▲
by
ellenhp
4y ago
OSM doesn't have a server per se (other than the OSM API server). It's a dataset for the most part. Headway lets you bring up a server that will render maps tiles, allows you to search for places and get routes between places. It&
55.
▲
Maps.earth – free and open-source web maps
(about.maps.earth)
696 points
by
ellenhp
4y ago
|
111 comments
56.
▲
by
ellenhp
4y ago
Headway uses Valhalla. Most of what I'm doing with this project is the config to bring up the entire stack easily.
57.
▲
by
ellenhp
4y ago
Pelias is pretty difficult to use with the kind of automated config I'm hoping to have for this project but I might give it another go. OTP is actually really fantastic and it might be a better choice than valhalla's multimodal es
58.
▲
by
ellenhp
4y ago
The plan is to use this dataset [1] and do a bounding-box intersection with the chosen city to automatically download appropriate timetables when the user runs `make CityName.up` [1] https://database.mobilitydata.org/
59.
▲
by
ellenhp
4y ago
Please open an issue with upstream (maplibre-gl-js) if you're not happy with the attribution that it provides by default. On my end I need to do better to make sure that it's never covered up. I'm really bad at CSS so that&#x
60.
▲
by
ellenhp
4y ago
Didn't realize that about Organic Maps. It also appears to be open-source which is cool. Is its geocoder any good? Search in OsmAnd is painfully slow and not tolerant of typos at all. Headway uses photon as a geocoder autocompletion sy
More ›