from Hacker News

Google Maps is a critical dependency for nutrition facts on mcdonalds.com

by zagrebian on 8/26/23, 3:49 PM with 105 comments

  • by reactordev on 8/26/23, 5:33 PM

    The sourced ingredients are indeed regional. The menu is regional as well. The website is built on top of their mobile ordering platform. The mobile ordering platform requires your location to be able to route your order to the “correct” McDonald’s. This is done via requesting your location from Google or via location services within the mobile app.

    This platform is used by a lot of different QSRs. Or Quick Service Restaurants. Dunkin, Starbucks, Taco Bell, Checkers, etc.

    I know this because I built the platform.

    The biggest hurdle to the platform was delivering your order to the store “just-in-time” for it to be hot and ready when you get there.

    Checkout CardFREE. It’s been a decade but they are still delivering value. The VP of Engineering was a new hire junior engineer when I was there.

    http://www.cardfree.com

  • by klyrs on 8/26/23, 4:36 PM

    While they could get it in a different way, your location (or, more important, restaurant location) does seem critical as McDonalds' menu is regional

    https://www.allrecipes.com/gallery/regional-mcdonalds-items/

  • by cf100clunk on 8/26/23, 4:12 PM

    Just a guess, but maybe its because there are different sources of the chicken, by region?
  • by jwie on 8/26/23, 4:31 PM

    Interesting that they won’t infer a location from an IP or other information they have. Seems like they just want the location data and have an excuse to demand it.
  • by cptskippy on 8/26/23, 4:52 PM

    I have a feeling this is some dependency the dev created that's breaking their framework's rendering of the content.

    I have Firefox loaded with all the ad and privacy blockers installed for this reason when I do tests and code reviews. It reveals a lot of inadvertent dependencies and bugs that devs are unaware of.

  • by tracerbulletx on 8/26/23, 4:43 PM

    I mean there's a change your location button at the top that literally displays google maps, also might use it to auto complete addresses, they're probably just preloading the script for that. That page doesn't even request location permissions, this is much ado about nothing.
  • by bdcravens on 8/26/23, 4:41 PM

    The first couple of months I moved into my new house, many sites and apps were broken to me, as the address wasn't yet on Google Maps, and rather than degrade gracefully, those sites and apps were borked due to inability to pre-populate my address.
  • by whirlwin on 8/26/23, 4:36 PM

    Is there a more detailed explanation? It would be interesting to know how it works
  • by gruez on 8/26/23, 4:40 PM

    In other words: blocking random scripts might cause sites to stop working. Who would have thought? This is the equivalent of deleting a random third party analytics library and complaining that your app no longer builds. Sure, there's the concept of progressive enhancement or whatever, but at the same time it's also unreasonable to expect the developer to accommodate the possibility of any third party script getting blocked.
  • by astura on 8/26/23, 6:21 PM

    "I'm so offended that a website wants to give me accurate information."

    They are using Google Maps to get your local nutrition facts. They change with location.

  • by upon_drumhead on 8/26/23, 4:34 PM

    Speaking of which, I hate the new trend of requiring you to use their online ordering flow to view a menu or view nutrition info. I just want to know if I have enough calories left in the day for that medium fries on my way home. I don’t want to order online and have them delivered.
  • by Zetobal on 8/26/23, 4:32 PM

    Sounds like the typical... "We are not doing it because it's easy but because we thought it would be easy." Kind of manager... the ones that can get your whole company in trouble.
  • by codeulike on 8/26/23, 4:12 PM

    Fair enough. Google Maps is actually pretty solid and usually there.
  • by archo on 8/26/23, 6:15 PM

  • by Scarbutt on 8/26/23, 5:05 PM

    How bad is mcdonalds food?
  • by anselm on 8/26/23, 4:23 PM

    What is the concern?

    Looking at the law (in Oregon) “Total calories must be posted in a conspicuous place in a font size no smaller than the price, or the least prominent font size of the description of the item. A statement listing the daily nutrient intake amounts of calories, saturated fat, and sodium.”

    Seems like any legal requirements imply signage in the physical venue ?