Replacing existing google places autocomplete API to Algolia even though using Google Maps to locate the coords.
I am using Google maps alongside algolia where I have an index ‘locations’ with ‘lat’ and ‘lng’.
I am getting user location and watching position, I am also displaying markers from the database based on lat and lng. Example: the lat and lng from google are of the location 1176 bishop street, Montreal are 45.4954,
-73.5747 whereas Algolia provides 45.4983,-73.5801 respectively. which 0.5km away from the actual coords
- it doesn’t center the map on the coords.
Appreciate the solution.