Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

getCityNameByLatitudeLongitude

 const fetchLocationName = async (lat,lng) => {
    await fetch(
      'https://www.mapquestapi.com/geocoding/v1/reverse?key=G1moSFJkXvMTf7kCVqTOPMh1SxtvJaGi&location='+lat+'%2C'+lng+'&outFormat=json&thumbMaps=false',
    )
      .then((response) => response.json())
      .then((responseJson) => {
        console.log(
          'ADDRESS GEOCODE is BACK!! => ' + JSON.stringify(responseJson),
        );
      });
  };
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #getCityNameByLatitudeLongitude
ADD COMMENT
Topic
Name
4+1 =