My Location

It's completely understandable that you don't want everone registered on GoYOLO to know you address so to protect you, yet make all members searchable we use Google to provide address data based on the information you enter. When the "registration" and "profile edit" pages open they also include an address autocomplete script from google. As you type the details you enter are sent back to Google who in turn pass back all the locations and streets that match

Once you've selected your street and clicked submit we validate your data to make sure it's all there, and correct. One part of this process is to make your location more generic yet still searchable so we send your street anonymously back to Google to find out some broader information.

So, for example if we send this:


"formatted_address" : "The Mall, London SW1A 2BJ, UK"

We get this back where we pull out your [ "postal_town" ] and the first part of your [ "postal_code" ] which leaves us with London, SW1A It's this final cut down location that we then store in our system and viewable from your profile and to others as they search:


{
   "results" : [
      {
         "address_components" : [
            {
               "long_name" : "The Mall",
               "types" : [ "route" ]
            },
            {
               "long_name" : "London",
               "types" : [ "postal_town" ]
            },
            {
               "long_name" : "Greater London",
               "types" : [ "administrative_area_level_2", "political" ]
            },
            {
               "long_name" : "England",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "United Kingdom",
               "types" : [ "country", "political" ]
            },
            {
               "long_name" : "SW1A 2BJ",
               "types" : [ "postal_code" ]
            }
         ],
         "formatted_address" : "The Mall, London SW1A 2BJ, UK",
            "location" : {
               "lat" : 51.50464849999999,
               "lng" : -0.1338731
            }
      }
   ]
}

We also use part of the lat/lng information provided for your postcode behind the scenes when people are searching to ensure only people who match your location search critera can see you, and vice versa


            "location" : {
               "lat" : 51.504648499,
               "lng" : -0.1338731
            }