News for hackers. Stuff that matters.
Re:Should this be a map or 500 maps? by dataflow on Thursday July 04, 2024 @07:02AM (#40873913)
> It doesn't let you avoid a road or favour another

This might be a computational cost thing. Modern routing algorithms preprocess the graph to find the optimal route orders of magnitude faster than you normally would without preprocessing. If you let each person customize the graph then such queries would be much more costly.

Then again, I'm sure there are lots of other complications already and that most users wouldn't want alternate routes, so maybe the marginal cost here is irrelevant?

Re:Should this be a map or 500 maps? by codetrotter on Thursday July 04, 2024 @07:27AM (#40874020)
Hire some game devs that have worked on path finding in AAA games. They will find a way to partially pre process the map data in such a way that on-device computation can then let the user pick and choose what roads to favor and what roads to exclude.

And as an added bonus they’ll be unrelentingly optimizing your map application to the point where the UI will run at 144 Hz ;)

Re:Should this be a map or 500 maps? by PoignardAzur on Thursday July 04, 2024 @08:08AM (#40874229)
> Hire some game devs that have worked on path finding in AAA games.

I think you're seriously overestimating how many AAA games do any kind of fancy pathfinding beyond "just use A*".

Re:Should this be a map or 500 maps? by codetrotter on Thursday July 04, 2024 @11:24AM (#40875631)
Well. I’m not saying to unconditionally hire them.

Ask them a few questions in the interview to see what specific kind of problems they’ve been solving :)

Re:Should this be a map or 500 maps? by dataflow on Thursday July 04, 2024 @07:54AM (#40874154)
Game routing is not remotely similar to real world routing. Neither in scale, nor in other aspects like road traffic or incorporation of human preferences.

In any case, I'm not suggesting it's impossible, just costlier than people imagine when they ask for the feature.

Re:Should this be a map or 500 maps? by bazzargh on Thursday July 04, 2024 @08:18AM (#40874298)
Cyclestreets already built a custom bike routing engine that is used in a bunch of different cycle map apps/websites, and has been for over a decade

https://www.cyclestreets.net/help/journey/routing/

at the most basic level it lets you choose between fastest and quietest routes, understands hills, cycle paths, etc.

There's many, many other choices https://wiki.openstreetmap.org/wiki/Routing

contraction hierarchies https://en.wikipedia.org/wiki/Contraction_hierarchies made cross-continent route planning practical and practically instant, eg in GraphHopper. A lot of the options listed there work offline.

Re:Should this be a map or 500 maps? by moomoo11 on Thursday July 04, 2024 @07:58AM (#40874176)
Those overrides could be stored locally and the maps service could still return the same optimized graph. The client device can then swap out and override it and do the calculation on device.
Re:Should this be a map or 500 maps? by account42 on Thursday July 04, 2024 @09:28AM (#40874799)
> most users wouldn't want alternate routes

I wouldn't be so sure about that. I have seen many different users intentionally deviate from the suggested route because they know more than Google about what is best for them (or at least they think they do).

Re:Should this be a map or 500 maps? by btbuildem on Thursday July 04, 2024 @10:01AM (#40875043)
I sometimes I think Waze is sending me on an exploratory missions, giving me a sub-optimal route just to learn the current conditions along it.
Re:Should this be a map or 500 maps? by dataflow on Thursday July 04, 2024 @10:40AM (#40875314)
s/users/queries/.

I wasn't saying this never happens. I myself deviated from Google Maps just yesterday. But, like, this was probably the only one out of my last 10 queries. And I was trying to say this is a minority of the queries.