I'm trying to give a mark over a certain place in Google Map. However I feel that the marker of the Google Map is not accurate.
For example, let's try put White House using Marker in Google Map. Based on Google Earth, White House is in 38°53'51.54"N and 77° 2'8.40"W.
I convert it to latitude 38.535154 and longitude -77.2840
So I created this code:
var company = new google.maps.LatLng(38.535154, -77.2840);
var marker;
var map;
function initialize() {
var latlng = new google.maps.LatLng(38.535154, -77.2840);
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
marker = new google.maps.Marker({
map:map,
draggable:true,
animation: google.maps.Animation.DROP,
position: company
});
google.maps.event.addListener(marker, 'click', toggleBounce);
}
However, after I open my browser, my marker is in South West of Washington.

So my questions are :
Is Google Maps latitude & longitude is a bit off ( not in sync with Google Earth ) or is there anything wrong with my conversion or my code ?
If let say the Google Earth Long & Lat is the wrong one, is there a way to know longitude and latitude directly from Google Map?