Is there any webservice or Jquery plugin to get longitude and latitude
Am trying to integrate goople map api with a jquery plugin- gMap.
It looks good and simple. It needs latitude and longitude to produce dynamic maps.
So am looking for any plugin or webservice which can give me the lat and long if i pass the address , city , country.
Any info is invited!
Is there any jquery map plugin which can generate map by just giving address?
$("#locmap").live("click", function(){
$('#map5').gM开发者_开发技巧ap(
{
markers: [{
address: 'address',
html: "location name",
popup: true
}],
zoom:6
});
});
gMap can use an address instead of lat/long. Just use
$('#map').gMap({address: 'address, city, country'}, zoom:10})
You can find some info here: http://www.jquery4u.com/api-calls/geo-location-2-lines-javascript/
this gives a map by passing only the address in: http://maps.google.co.uk/maps?q=yemen+road,+yemen&hl=en
精彩评论