Permalink
Browse files

Documentation changes

  • Loading branch information...
1 parent 0dcb8a4 commit db0b745f28445a2da11b9fb29fb38606e4fb67c4 @petewarden committed Mar 26, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 views/welcome.haml
View
@@ -43,9 +43,17 @@
API:
%a{:href=>"/developerdocs#street2coordinates"} /street2coordinates
%br
- Street Address to Location calculates the latitude/longitude coordinates for a postal address.
+ Street Address to Location calculates the latitude/longitude coordinates for a postal address. Are you currently using Google's geocoding API and want to switch? Just replace maps.googleapis.com in your calls with the address of your own server running the DSTK, and your client code should work without changes. For example:
%br
- Currently restricted to the US and UK.
+ %a{:href=>"http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false"}
+ http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false
+ %br
+ just becomes
+ %br
+ %a{:href=>"http://www.datasciencetoolkit.org/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false"}
+ http://www.datasciencetoolkit.org/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false
+ %br
+ Currently only the US and UK have street-level detail.
%br
.tryip2coordinates{:style=>"margin-top:20px; font-size: 125%;"}

0 comments on commit db0b745

Please sign in to comment.