We’ve talked about querying and retrieving Solr Location data recently, so it’s time to take it to the next level. We’re going to use that Solr location data, along with Thymeleaf and Spring, to display a map using the Google Maps API.
Product Model Location and Point Data Types
In the post Retrieving Location Data with Spring Solr I talked about handling Solr Location data as a String then converting it to a SpringFramework.Geo.Point type as needed. Here are the Location and Point properties of our Product Model.
Thymeleaf Inline as Text