Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice
  2. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Nearest Store Location

Discussion in 'AR/VR (XR) Discussion' started by marcosis, Nov 2, 2021.

  1. marcosis

    marcosis

    Joined:
    Nov 5, 2018
    Posts:
    22
    Hey,
    Im creating an app through unity. I found this the best way to do it, as its mainly an AR app and i like the way unity handles AR.
    I want another section on the app where people would be able to enter their postcode and it would tell them their nearest branch/store.
    Does anyone know how i would go about this?

    Cheers
     
  2. kyle_v

    kyle_v

    Unity Technologies

    Joined:
    May 24, 2016
    Posts:
    4
  3. colinleet

    colinleet

    Joined:
    Nov 20, 2019
    Posts:
    126
    https://ourcodeworld.com/articles/r...dinates-latitude-and-longitude-with-php-mysql

    Something like that is how I previously solved this problem with mySQL. You could probably weld together something like this with a local SQLite database if you wanted [it's free], or just make it a server side API call [low cost and simple]. This method might be better for store locations than zip codes, as there will probably be a lot less of stores then zip codes, but you can find zip code lists with GPS tags online too.
     
    Last edited: Nov 16, 2021
unityunity