www spreadsheet1 com

Upload: jhdmss

Post on 11-Oct-2015

9 views

Category:

Documents


0 download

TRANSCRIPT

  • Email Address:

    First Name :

    Last Name:

    SUBSCRIBE TO LIST

    Join our email list toreceive free updates

    How we respect your Privacy

    Framework for dynamic

    Excel Data Analytics, Business Intelligence & Tactical Solutions

    Home Articles

    Google Static Image Maps & Street ViewThe demo created by Petros combines 4 static street view images and 2static (non-interactive) map images (road & satellite) into an Excelpanorama view using Google's static MAP & Street View APIs.

    The Google Static Map v2 API service creates a static (non-interactive) map based on URL parameters sent through a standard HTTPrequest and returns the map as an image, which you can be displayed inExcel.

    In the same way, the Google Street View Image API creates a Street Viewpanorama. The viewport is defined with URL parameters sent and isreturned as a static image in Excel.

    The VBA code is simple: oShape.Fill.UserPicture strURL where strURL isa string with URL parameters, as defined in Google developer's guides. Theimage created by the service is loaded in an Excel shape object.

    In our demo, the shape outline has been removed (no outline), the shapeshave been 'snapped to shape' and grouped.

    A search address can be entered in 3 ways:

    In the ribbon, in the address field.

    In the userform's text field, above the 'Show Map' button.

    Or by selecting and/or editing a POI (point of interest) from the listbox.

    The listbox is loaded with POI descriptions from an Excel 2007 Table(ListObject), which can be edited by the user.

    The slider controls the zoom level, when a search is made through the userform. The Ribbon search isfixed to zoom level 14.

    Google is enforcing a quota limit for non-business use customers. Since 4 Street View requests are madeper search in our Excel demo, the limit per 24 hours is up to 250 searches per viewer. The service will stopworking immediately, if the limit is exceeded to prevent abuse.

    If you require an Excel map application, please contact us to discuss your requirements

    HOMEFREE ADD-INS

    RIBBONARTICLES

    TUTORIALSABOUT US

    CONTACT USBLOG

    Please click icon to download the Excel workbookFilename: Google Maps Panorama (free-unlocked).zip

    Click here to read a documentation article or watch the video below

    The Excel workbook is free/unlocked and runs in Excel 2007 or later

    converted by Web2PDFConvert.com

  • Ribbon User Interfacedevelopment from

    VBA & .NET

    123456789

    10111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364

    Sub GoogleStaticStreetView(oShape As Shape, _ strAddress As String, _ nHeading As Long, _ Optional nHeight As Long = 512, _ Optional nWidth As Long = 512) 'https://developers.google.com/maps/documentation/streetview/ Dim strURL As String If bRunMode Then On Error Resume Next 'Error if quota exceeded If Len(strAddress) > 0 Then 'URL-Escaped addresses strAddress = Replace(strAddress, " ", "+") Else Exit Sub End If strURL = _ "http://maps.googleapis.com/maps/api/streetview?" & _ "&location=" & strAddress & _ "&size=" & nWidth & "x" & nHeight & _ "&heading=" & nHeading & _ "&sensor=false" oShape.Fill.UserPicture strURL End Sub Sub GoogleStaticMap(oShape As Shape, _ strAddress As String, _ Optional strMapType As String = "roadmap", _ Optional nZoom As Long = 12, _ Optional nHeight As Long = 512, _ Optional nWidth As Long = 512) 'https://developers.google.com/maps/documentation/staticmaps/ Dim strURL As String If bRunMode Then On Error Resume Next 'Error if quota exceeded If Len(strAddress) > 0 Then 'URL-Escaped addresses strAddress = Replace(strAddress, " ", "+") Else Exit Sub End If strURL = _ "http://maps.googleapis.com/maps/api/staticmap?center=" & _ strAddress & "," & _ "&maptype=" & strMapType & _ "&markers=color:green%7Clabel:%7C" & strAddress & _ "&zoom=" & nZoom & _ "&size=" & nWidth & "x" & nHeight & _ "&sensor=false" & _ "&scale=1" oShape.Fill.UserPicture strURL End Sub

    converted by Web2PDFConvert.com

  • Google Maps Excel workbook running in Mac Parallels desktop

    converted by Web2PDFConvert.com

  • How to stamp a workbook with a hiddenauthor property - Excel Data Analytics1 comment a year ago

    kkalog just amazing! keep up the good workguys!

    Excel VBA development best practices2 comments a year ago

    Zyg D NIce article.There' a small mistake at theend of 2nd bullet of #4 suggestion:Application.Calculation = OriCalcMode

    ZuluTrade - Excel Data Analytics3 comments a year ago

    Petros Chatzipantazis Benjax / JamesWe planto release the data on a weekly basis along witha free Addin for analysis and

    World cup 2014 free Excel prediction template- Spreadsheet1 - Excel Data 19 comments 3 months ago

    Sumit Bansal Nice..Thanks!!

    ALSO ON WWW.SPREADSHEET1.COM

    0 Comments www.Spreadsheet1.com Login

    Sort by Newest Share

    Start the discussion

    Subscribe Add Disqus to your site

    Favorite

    Home Articles Google Static Image Maps & Street View

    Microsoft & the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countriesCopyright 2012-2014 Esoteric Consulting Ltd - United Kingdom

    AffiliatesClient AreaContact us

    Privacy PolicyTerms & ConditionsExit

    Search our Website using JRank SEARCH

    Follow Share

    converted by Web2PDFConvert.com