Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Geocoding a location with a apostrophe in Apps Script gives an 'Action not allowed' error

I have the following code in a Google Apps Script web app:

Maps.newGeocoder().geocode("Tyson's Corner, VA");

Yes, there's a typo in there. I always forget the proper name of the place.

This code uses the Apps Script Maps Geocoder to determine the location of the address.

When I run this minimal code, Apps Script raises an error:

Action not allowed

When I remove the ' from the address, the call completes and returns the correct location.

Does anyone know if this is expected behavior (I can't find it in the docs)?

like image 595
Frank van Puffelen Avatar asked Nov 07 '22 17:11

Frank van Puffelen


1 Answers

I've tried your use case and experience the same error, I think there is an existing bug report for this scenario and still under investigation. You may want to follow it to be updated regarding any solutions or workaround (currently removing the "'" would let this work, which you've already did).

like image 134
Mr.Rebot Avatar answered Nov 26 '22 08:11

Mr.Rebot