Google’s Programmable Search Engine of GeoPlatform#
Introduction#
This documentation provides a way to embed a Google Programmable Search field into an external website to GeoPlatform. This allows the search and display (via Google) of GeoPlatform records.
Learn more about Google’s Programmable Search Engine
Disclaimer: depending on your website’s environment this may not be possible. See Prerequisites below.
Prerequisites#
Basic HTML modification knowledge
Edit access to your website
Ability to edit HTML of website
Ability to add external JavaScript scripts to your website
Adding the Search#
Determine the location of where you’d like to add this feature on your site.
Copy the following code and paste it into your site’s
<body>
section, where you want the search box to render.<script async src="https://cse.google.com/cse.js?cx=56d4252913b3d4da2"></script> <div class="gcse-searchbox"></div>
Copy the following code and paste it into your site’s
<body>
section, where you want the search results to render.<div class="gcse-searchresults"></div>
Publish your site