address centric suggestion

Mar 2, 2009 at 11:28 PM
Edited Mar 2, 2009 at 11:36 PM
Hello, thanks for posting this solution and writing up great documentation.  Suggestion: since google maps can figure out most any address (e.g. parameterized as ?q=address), why not provide this option as an option if the user has a sharepoint list with an 'address' field versus just long, lat..  This could make the hurdle of geocoding moot.

I think this technique uses the gmap 1.0 type of interface where the map request are contained within the url parameters.

Alternatively, the newer gmap2 interface uses gmap's javascript objects, but will accomplish the same thing (using just an address versus long + lat).

e.g. (trivial example from
the javascript;
   var map = null;
var geocoder = null;

function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
geocoder = new GClientGeocoder();

function showAddress(address) {
if (geocoder) {
function(point) {
if (!point) {
alert(address + " not found");
} else {
map.setCenter(point, 13);
var marker = new GMarker(point);

and then for the html;
1. the body event's: onload="initialize()" onunload="GUnload()"
2. a form submit event is used in this case, but it could be anything including onload of the body -
showAddress(this.address.value); return false
Mar 3, 2009 at 2:28 PM

Yes that is pretty good and something I'll add into vNext for people to use if they want.

Only reason I haven't used addresses so far is that postal / zip codes are not very accurate in here in the the UK.  I know if I use my home address it takes me a considerable distance from my home address.

"Google Maps API provides a geocoding feature, for finding the latitude and longitude of places or addresses; but it does not work for UK postcodes. This is thanks to Royal Mail who have a copyright on the data, and are very restrictive with their (expensive) licenses for it."

I'll have a look into it though.

Mar 16, 2009 at 8:34 PM
I'd also like that feature added. I've just gotten everything up and going and was really hoping that part of it was in there. In the meantime I'll have to manually lookup the lat/long for the adresses in my list.
Jun 28, 2010 at 4:31 AM

Ditto! Really looking forward to this addition.