Google Maps API: Features, Functions, and Key Considerations

Link: https://support.brilliantdirectories.com/support/solutions/articles/5000682639

The Google Maps API plays an essential role in powering location-based features on Brilliant Directories websites. By integrating directly with Google’s mapping technology, it provides members and visitors with accurate, flexible, and dynamic location search options that go far beyond simple address lookups. 


From handling multiple spellings and landmarks to displaying real-time map results and offering advanced geocoding controls, the API brings significant functionality to any directory site. 


At the same time, there are important requirements and limitations to be aware of, ensuring site owners understand both the advantages and the boundaries of this integration.


Benefits

The API offers a range of benefits for website owners who connect their site to Google Maps, making it easier for members to find locations and access relevant map-based features.


One of the powerful parts of BD, as users generate content, or join from different locations; all the profiles pages and search result pages are all automatically created and dynamically populated.


Location Flexibility

Search for any type of location, including street addresses:



Landmarks

Search for landmarks:




Location Spelling 

Search using different spellings of the same location (Montreal vs. Montréal), even using accents and other special characters: 




Robust handling of misspellings / imperfect matches:




Map Display 

Search results are displayed on a Google Map:




Additional Information:

» Google Map Search Results Add-On



Geocoding 

New manual geocoding module gives the website administrator full control over correcting the latitude and longitude assigned to each member:




Additional Information:

» How To Geocode Members



Latitude and Longitude

Members will use Google Maps when filling out their profile information to provide an exact latitude and longitude for their listing (even if Google Maps does not recognize their written address):




Additional Benefits


  • Location auto-suggestions are lightning-fast, as they are delivered directly from the Google Maps API.

  • Location data is pulled in real time from the Google Map's location database, meaning your locations always use the latest location data available from Google.

  • Location searches are automatically tailored to your users' likely behavior. For example, if a user is located in India, the system will read their IP address and provide them with location suggestions that are most likely to fit their needs.

  • Gain unprecedented control over how searches behave on your site.  For example, choose between having bounding-box search results or radius search results for every type of location search. For example, if a user searches for "90210", you will be able to restrict results to the northeast and southwest points of that specific zip code, providing incredible local results, OR choose to provide results within a set radius from the center of that zip code.



Requirements


You must provide your own (free) Google Maps Javascript API key.  


Getting an API key: Google Maps Javascript API Key



Limitations


  • The auto-suggest module when users are entering location information has limited customization options. Since it is directly returning results from the Google Maps API, the suggestions provided are not editable.

  • Using the mouse wheel to zoom in and out on the map is not available for the integration.

  • Location search results cannot be strictly limited to specific geographic regions. Since the Google Maps API is built to return results intuitively, it will know where a user is located, and likely matches to their search are given precedence. If the search is ambiguous and could refer to several different locations, it will provide additional location suggestions, which CAN be controlled through your Admin settings.  However, the initial search a user enters may not provide results within your preferred countries if Google believes the search is most likely for a location outside of your preferred countries.

  • Most websites and applications may use the Google Maps API free of charge. However, if you consistently generate a high amount of traffic, you may be required to pay for additional usage of the API. If your site or application generates 25,000 or more map loads each day for more than 90 consecutive days, Google may contact you to upgrade from the free API. But don’t worry!  If you go over the limits, Google will not immediately shut off your API access or display error messages on your site.  And if you are generating more than 25,000 map loads per day consistently, your website is already a major success!

Places (New) API

To ensure more accurate searches, websites that use the Google Maps “PLACES (NEW) API”  require visitors to select an option from the dropdown suggestions. In the past, users could type free-form text and attempt a search without confirming a recognized location, which often led to incomplete or invalid results. With this update in place, the search will not continue unless a valid suggestion has been chosen, making the process clearer and more reliable for everyone using the site.



  • When a visitor tries to search without selecting a suggestion, a small banner appears at the top of the results with the message “REQUIRED: Select Location”. 
  • Next to it, an exclamation point icon provides additional context when hovered over, displaying “Please select a location from the suggestions dropdown to continue.” 


This approach makes it immediately obvious what action is needed and reduces confusion or errors during the search process.


Text Labels

The banner message and tooltip are both standard text labels in the system. This means they can be fully customized, translated, or removed from the admin area if desired. Editing these labels allows administrators to match the exact language or terminology used on their website. 


  • Google Suggestion Require Text
  • Google Suggestion Require Text Popover



While removing the text is possible, it is not recommended since doing so would reduce clarity for visitors and may lead to repeated search errors. The default labels provide helpful guidance and are intended to create a smoother, more user-friendly search experience.