mercredi 26 décembre 2018

this android studio is giving these failed errors

i have a website project which one of it factors will b based on location of people and some places. my project is established by Eclipse, but i couldn't put any GPS in the project. actually i have done some research but all of them were useless. so, what should i do now? where should i add this code for example?

function geoFindMe() {
var latitude  = position.coords.latitude;
var longitude = position.coords.longitude;

output.innerHTML = '<p>Latitude is ' + latitude + '° <br>Longitude is ' + longitude + '°</p>';

var img = new Image();
img.src = "https://maps.googleapis.com/maps/api/staticmap?center=" + latitude + "," + longitude + "&zoom=13&size=300x300&sensor=false";

output.appendChild(img);

}

this is one of the codes which i found online and its related to JavaScrpit. any help would be highly appreciating!




Aucun commentaire:

Enregistrer un commentaire