<%@ Page MasterPageFile="~/Blankenthoughts.master" Title="Blankenthoughts: February 2006" %>

Tuesday, February 28, 2006

Let me preface this post with: Google Rules. I'd work for them in a second. Their products are outstanding, leaders in their field. Google Maps is included in this opinion.

I've recently begun playing with the APIs for Maps, and I'm blown away. They've made this about as easy as it can be. There are two BIG pieces that are not exposed, and I'm more than a little disappointed.

1) Geocoding - I'd really like the ability to translate an address into latitude and longitude points. I've found other services that will provide that for me, but it would be nice to have a one-stop shop in Google Maps. I am currently using a free geocoding API at http://emad.fano.us/blog/?p=277 to determine this data.

2) Point to Point Directions - Google Maps currently allows you to draw lines on their maps, but there's not a good way to determine what the points for each turn of a trip is. Being able to create custom maps from Point A to Point B would be incredibly powerful.

Anyways, here's the code you need to get your very own map up and running. The only catch is that you'll need to generate your own API key at: http://www.google.com/apis/maps.

<div id="map" style="width: 500px; height: 400px"></div>
<script src="http://maps.google.com/maps?file=api&v=1&key=YourKeyHere" type="text/javascript"></script>
<script language="javascript">
// var map = new GMap(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.centerAndZoom(new GPoint(-122.1419, 37.4419), 4);
//]]>
</script>
posted by Jeff Blankenburg, 12:51 PM | link | 1 comments |
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
November 2006
December 2006
January 2007
February 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
July 2008
August 2008
September 2008
Credit or Debit?
Reformatting my blog...
TUTORIAL: Using Javascript To Call A WCF Web Servi...
DevLink '08 in pictures...
.NET Rocks at DevLink!
Consuming Web Services In Silverlight
Obscure Knowledge: The Levenshtein Distance
Codestock 2008 - Photos In Review
Streaming Live From Codestock!
NBC Olympics - In Silverlight 2!