Git Product home page Git Product logo

Comments (16)

ritz078 avatar ritz078 commented on May 30, 2024

Streetview needs the exact coordinates of the location and I don't think people will be writing something like @(12.12,14.54) in the normal text.

from embed-js.

 avatar commented on May 30, 2024

maybey you can use this converter to get the coord's.

var latitude;
var longitude;

function Convert_LatLng_To_Address(address, callback) {
url = "http://maps.googleapis.com/maps/api/geocode/json?address=" + address + "&sensor=false";
jQuery.getJSON(url, function (json) {
Create_Address(json, callback);
});
}

function Create_Address(json, callback) {
if (!check_status(json)) // If the json file's status is not ok, then return
return 0;
latitude = json["results"][0]["geometry"]["location"]["lat"];
longitude = json["results"][0]["geometry"]["location"]["lng"];
callback();
}

function check_status(json) {
if (json["status"] == "OK") return true;
return false;
}

Convert_LatLng_To_Address(address, AlertLatLng);
function AlertLatLng() {
var result = "The latitude is " + latitude + " and longitude is " + longitude;
document.getElementById('result').innerHTML=result;
}

var address = "adres number city";

from embed-js.

ritz078 avatar ritz078 commented on May 30, 2024

How will you resolve the issue of multiple place with same name ? I don't think anyone is going to write the whole address.

from embed-js.

 avatar commented on May 30, 2024

var address = "adres number city COUNTRY/REGION"; can be used too...

from embed-js.

ritz078 avatar ritz078 commented on May 30, 2024

now you can check them and report any bugs that you find.

from embed-js.

 avatar commented on May 30, 2024

thnx. I updated the embed.js and added the options, but can't see a diference in the map display.

from embed-js.

ritz078 avatar ritz078 commented on May 30, 2024

what does your option look like ?

from embed-js.

 avatar commented on May 30, 2024

i tried: 'place' or 'streetview' or 'view'

from embed-js.

ritz078 avatar ritz078 commented on May 30, 2024

are you using the latest code from the canary branch ?
and is there any error in the console because mine is working fine.

from embed-js.

 avatar commented on May 30, 2024

yes from this location
6cdb951

from embed-js.

ritz078 avatar ritz078 commented on May 30, 2024

any error on the console ?

from embed-js.

 avatar commented on May 30, 2024

i think i found the problem :P i was running script on old backup folder.
it works now.

sorry :(

from embed-js.

ritz078 avatar ritz078 commented on May 30, 2024

nice that ur problem is solved now 😄

from embed-js.

 avatar commented on May 30, 2024

yeah yeah! next time i look 4times before reporting something :P

from embed-js.

 avatar commented on May 30, 2024

push the button to close this :P

from embed-js.

ritz078 avatar ritz078 commented on May 30, 2024

its already closed.

from embed-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.