How to get Google Maps API KEY
In order to use Google Maps in Dynamics 365 - Google Maps Directions API, Geocoding API and Maps
JavaScript API must be enabled. Then Google Maps API Key can be generated.
To do that:
1. Go to https://console.cloud.google.com and scroll to the bottom of the left-side menu
2. Select Google Maps -> APIs
3. Find Google Maps Directions API, Geocoding API and Maps JavaScript API
4. Enable Google Maps Directions API, Geocoding API and Maps JavaScript API
5. Go to Google Maps -> APIs section again
6. Open either Google Maps Geocoding API or Maps JavaScript API
7. Click on Credentials to find API key
Google Maps API Limitations
The described above steps allow to activate and use Free Version of Google Maps API. It has limitations.
Information about the limitations can be found in the Quotas section
Find more information about Geocoding API Usage and Billing following this link
https://developers.google.com/maps/documentation/geocoding/usage-and-billing?hl=en_US
How to configure Dynamica Google Maps Integration solution
After Dynamica Google Maps Integration solution installation few simple configuration steps must be
done:
1. Assign security roles to users:
- Google Map Basic User: possibility to create own search parameters and reading access for others;
- Google Map Advanced User: possibility to customize Dynamica settings and search parameters for
all users.
2. Go to Settings -> Solutions and open Dynamica Google Maps Integration solution.
3. Go to the Configuration page. Copy your Google Maps API key into the appropriate field.
4. Select all entities that can be searched on the map. The Search on the top of the tab can be used for
searching the entities.
5. Select in each chosen entity 1 field with the Longitude and 1 field with the Latitude. Latitude and
Longitude are the units that represent the coordinates at the geographic coordinate system.
6. Select option Long/Lat in related records if you can't find correct fields with longitude and latitude
data for your entity. Select the relevant entity with the longitude and latitude fields from the drop-
down list.
7. Select in Part of Address all address fields that will be searched on the map (country, city, street,
etc.). Or you can choose 1 composite field, for example, Address 1.
8. Select in the Map Tooltip all the fields that you need to be displayed in the Results when you click on
the marker on the map.
9. After all entities and their parameters are selected, click on the Check Geocoding button.
10. In the modal window, that appears, the selected records and their number are visible. Click Run
Geocoding.
If the geocoding data was changed after the geocoding was completed, select the Re-geocoding option
and start the geocoding again.
11. After geocoding is completed, close the window. If there are any errors, then you can see them by
clicking on show errors option.
12. Click to the Add Google Maps to Navigation Menu button and choose the Model-Driven application,
in which you want to add the Google Maps Integration solution. Click to the Add Menu Item button and
close the window.
Click the Add Google Maps to Form button and select entity and form of the entity if you want to
display Google Map Web Resource on a specific form.
13. Click Configure Default Search for All Users button. Add Search Entities, Views of Entities, Search
Fields, etc. click the Save button. Select Is Default Search option if you want to create a default search
for all users.
Select Is Default Search option if you want to create a default search for all users.
14. Reload model-driven application after finishing the settings.