title: getting lat long from google map in react native
body: <blockquote>
  <p><strong>I am unable to get the lat long from the google map API, Using React  Native</strong>.</p>
  <p><strong>I am using this Extension for auto complete</strong> <a href="https://github.com/FaridSafi/react-native-google-places-autocomplete" rel="nofollow noreferrer">react-native-google-places-autocomplete</a></p>
  </blockquote>
  <p>I am Building a rideshare application, For this, i have to get the pick-up and drop location of the user. With many efforts,i get the Auto-Complete  Work.</p>
  <blockquote>
  <p>Now the problem is, i need the latitude and longitude of the selected Locations. i tried but i can`t.</p>
  </blockquote>
  <p>Need Help, Thank you.</p>
  <pre><code>&lt;GooglePlacesAutocomplete
    placeholder='Enter Location'
    minLength={2}
    autoFocus={false}
    returnKeyType={'default'}
    fetchDetails={true}
    onPress={(data, details = null) =&gt; { 
  // I tried this One 
  // Tried to get the reponce from API HERE
  
    console.log(data, details);
  }}
    styles={{
      textInputContainer: {
        backgroundColor: 'rgba(0,0,0,0)',
        borderTopWidth: 0,
        borderBottomWidth:0
      },
      textInput: {
        marginLeft: 0,
        marginRight: 0,
        height: 38,
        color: '#5d5d5d',
        fontSize: 16
      },
      predefinedPlacesDescription: {
        color: '#1faadb'
      },
    }}
    query={{
      // available options: https://developers.google.com/places/web-service/autocomplete
      key: 'YOUR API KEY',
      language: 'en', // language of the results
      types: '(cities)' // default: 'geocode'
    }}
    currentLocation={false}
  /&gt;
  </code></pre>