Alpha DevCon 2018
Results 1 to 6 of 6

Thread: In response to "Keyless Access No Longer Supported by Google Maps" posted in announcements

  1. #1
    Member preston2's Avatar
    Real Name
    Preston
    Join Date
    Nov 2011
    Posts
    763

    Default In response to "Keyless Access No Longer Supported by Google Maps" posted in announcements

    The post stated "On June 22, 2016, Google announced that the Google Maps API no longer supports keyless access".

    While this may be the case if you are still trying to use the browser that Alpha calls internally using any methods that use the Google Maps API , it is not the case with calling google maps in a browser yourself.

    This has been working for me since IE 11 came out. I hate IE anyway.

    Code:
    'Date Created: 30-Mar-2016 11:47:14 AM
    'Last Updated: 30-Mar-2016 11:47:14 AM
    'Created By  : ShopCal
    'Updated By  : ShopCal
    dim url_var as c = "https://www.google.com/maps/place/"
    if customers->SHIP_ADDRESS_1 > "" then
    url_var = url_var+alltrim(customers->SHIP_ADDRESS_1)
    
    if customers->SHIP_ADDRESS_2 > "" then
       url_var = url_var+"+"+alltrim(customers->SHIP_ADDRESS_2)
     end if
    
    if customers->SHIP_CITY > "" then
    url_var = url_var+"+"+alltrim(customers->SHIP_CITY)
    end if
    
    if customers->SHIP_STATE_REGION > "" then
    url_var = url_var+"+"+alltrim(customers->SHIP_STATE_REGION)
    end if
    
    if customers->SHIP_POSTAL_CODE > "" then
    url_var = url_var+"+"+alltrim(customers->SHIP_POSTAL_CODE)
    end if
    
    end if
    
    sys_open(URL_var)
    For a list of example url calls see https://gearside.com/easily-link-to-...w-google-maps/

  2. #2
    Alpha Software Employee Beta Spark's Avatar
    Real Name
    Sarah Mitchell
    Join Date
    Jul 2015
    Posts
    388

    Default Re: In response to "Keyless Access No Longer Supported by Google Maps" posted in announcements

    Quote Originally Posted by preston2 View Post
    The post stated "On June 22, 2016, Google announced that the Google Maps API no longer supports keyless access".

    While this may be the case if you are still trying to use the browser that Alpha calls internally using any methods that use the Google Maps API , it is not the case with calling google maps in a browser yourself.

    This has been working for me since IE 11 came out. I hate IE anyway.

    Code:
    'Date Created: 30-Mar-2016 11:47:14 AM
    'Last Updated: 30-Mar-2016 11:47:14 AM
    'Created By  : ShopCal
    'Updated By  : ShopCal
    dim url_var as c = "https://www.google.com/maps/place/"
    if customers->SHIP_ADDRESS_1 > "" then
    url_var = url_var+alltrim(customers->SHIP_ADDRESS_1)
    
    if customers->SHIP_ADDRESS_2 > "" then
       url_var = url_var+"+"+alltrim(customers->SHIP_ADDRESS_2)
     end if
    
    if customers->SHIP_CITY > "" then
    url_var = url_var+"+"+alltrim(customers->SHIP_CITY)
    end if
    
    if customers->SHIP_STATE_REGION > "" then
    url_var = url_var+"+"+alltrim(customers->SHIP_STATE_REGION)
    end if
    
    if customers->SHIP_POSTAL_CODE > "" then
    url_var = url_var+"+"+alltrim(customers->SHIP_POSTAL_CODE)
    end if
    
    end if
    
    sys_open(URL_var)
    For a list of example url calls see https://gearside.com/easily-link-to-...w-google-maps/
    Google Places is not one of the map APIs that now require a key, so your example will continue to work without an API key. If you want to use any of the other map APIs to do things such as display static maps, geocode addresses, or provide maps in your iOS or Android applications, you'll need an API key.

    Refer to this post from Google for additional information: https://developers.google.com/maps/p...an-2016-update

    Thanks
    Sarah Mitchell

    Looking for answers? Try our documentation.
    If you can't find something, let us know!

  3. #3
    Member preston2's Avatar
    Real Name
    Preston
    Join Date
    Nov 2011
    Posts
    763

    Default Re: In response to "Keyless Access No Longer Supported by Google Maps" posted in announcements

    Quote Originally Posted by Beta Spark View Post
    Google Places is not one of the map APIs that now require a key, so your example will continue to work without an API key. If you want to use any of the other map APIs to do things such as display static maps, geocode addresses, or provide maps in your iOS or Android applications, you'll need an API key.

    Refer to this post from Google for additional information: https://developers.google.com/maps/p...an-2016-update

    Thanks
    True but for desktop there is no need to use google api and the fact that Alpha only calls up Explorer makes it very undesirable to do from within Alpha anyway. I used to use the method as in the AlphaSports example but as IE changed and Google changed it became a very undesirable way to do it.

    My way just opens up google maps in your default browser and can just show the location or even give driving instructions so there is no need to ever do this internally within Alpha.

    At least for me and my customers.

    The reason I even posted this is because the post in the announcements made it sound like you HAD to use a Google api. Which you don't.

  4. #4
    "Certified" Alphaholic
    Real Name
    Ronald Anusiewicz
    Join Date
    Oct 2000
    Location
    Southampton, MA
    Posts
    1,461

    Default Re: In response to "Keyless Access No Longer Supported by Google Maps" posted in announcements

    Preston, thanks. Your code is what I needed.

  5. #5
    "Certified" Alphaholic MoGrace's Avatar
    Real Name
    Robin
    Join Date
    Mar 2006
    Location
    Los Angeles
    Posts
    3,319

    Default Re: In response to "Keyless Access No Longer Supported by Google Maps" posted in announcements

    You can also create a desktop form with a supercontrol or an xdialog to display a map in the IE ActiveX if you use the Bing map which is still using http:// and not https://

    Basic url string: http://www.bing.com/mapspreview?<address>

    From/To Directions: http://www.bing.com/mapspreview?rtp=adr.<from address>~adr.<to address>

    You will have to replace all spaces with the %20 tag

    MapSearch06302016.txt
    Last edited by MoGrace; 06-30-2016 at 12:46 PM.
    Robin

    Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

  6. #6
    Member preston2's Avatar
    Real Name
    Preston
    Join Date
    Nov 2011
    Posts
    763

    Default Re: In response to "Keyless Access No Longer Supported by Google Maps" posted in announcements

    Quote Originally Posted by Ronald Anusiewicz View Post
    Preston, thanks. Your code is what I needed.
    Glad it helped.

Similar Threads

  1. Keyless Access No Longer Supported by Google Maps
    By Beta Spark in forum Announcements
    Replies: 1
    Last Post: 06-29-2016, 12:08 PM
  2. Change Password response shows "Global Error" and then "Password Changed"
    By gkpurcey in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 06-10-2016, 04:46 PM
  3. Adding Google "My Places" Data to a Google Map Component
    By rbaas in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 10-03-2014, 10:46 AM
  4. I keep getting "Function requested is not supported" when submitting with detail grid
    By Atta in forum Application Server Version 11 - Web/Browser Applications
    Replies: 4
    Last Post: 03-28-2013, 03:59 PM
  5. Error writing dates to SQL table - Get "Requested function is not supported"
    By AAVasaris in forum Application Server Version 11 - Web/Browser Applications
    Replies: 3
    Last Post: 12-12-2012, 04:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •