Search code examples
javascriptgoogle-geocoder

Using Google Geocoding Accuracy with Javascript


What is the syntax for accessing the Google Geocoding Accuracy value? This is what I currently have but it's a complete stab in the dark:

var googleValue = results[0].geomtery.Accuracy;

Solution

  • As the first comments says - V3 does not support this location feature anymore. Instead you receive a "location type" value which uses a four-tiered set of values to describe the accuracy. This can be accessed with the following syntax:

    var googleValue = results[0].geometry.location_type;