Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

opencage reverse geocoding example

// https://api.opencagedata.com/geocode/v1/json?q=<LAT_VALUE>,<LON_VALUE>&pretty=1&key=API_KEY
fetch("https://api.opencagedata.com/geocode/v1/json?q=52.5,13.4&pretty=1&key=API_KEY")
.then(response => {
	return response.json();
})
.then( data => {
    console.log({ data });
})
.catch(err => {
	console.error(err);
});
 
PREVIOUS NEXT
Tagged: #opencage #reverse #geocoding
ADD COMMENT
Topic
Name
2+1 =