Topics

Tribe Support

Tribe Support's Topics

Scott Crawford

Scott Crawford

February 18 2017

Setting up Locations services

What specific service(s) from Google Maps should be used to activate the Anahita Locations capabilities?  I see several listed, but couldn't figure out which corresponded to the Browser API key & Server API key:

https://developers.google.com/maps/web/

  • 21 Comments
  • Last Comment by Rob Saric
  • Rastin Mehr liked this
Nick Swinford
Nick Swinford
February 18 2017 Permalink
I had a hard time figuring this out as well. I'm still not sure I have it configured properly.
Rastin Mehr
Rastin Mehr
February 18 2017 Permalink
Geocoding happens on the server side
Rastin Mehr
Rastin Mehr
February 18 2017 Permalink
Ok I just checked my own code and you need both browser and server API keys. The server API key is used for obtaining longitude and latitude of an address. The browser key is used in the search view to lookup a place and use it to search within a radius of it.
Scott Crawford
Scott Crawford
February 19 2017 Permalink
Is it a particular "Web" or "Web Services" offering that we should be aiming for?

https://developers.google.com/maps/pricing-and-plans/
Rastin Mehr
Rastin Mehr
February 19 2017 Permalink
They have made it so confusing now!

Use this for browser key:
https://developers.google.com/maps/documentation/javascript/adding-a-google-map#key

and this for server key:
https://developers.google.com/maps/documentation/geocoding/get-api-key

Use the free plans for both.
Unknown Person liked this
Scott Crawford
Scott Crawford
February 20 2017 Permalink
Thx!!
Rastin Mehr
Rastin Mehr
February 20 2017 Permalink
By the way, what version of Anahita are you using?
Scott Crawford
Scott Crawford
February 21 2017 Permalink
Wrapping up some adjustments on 4.2.4 before starting the migration to 4.3.*
Rastin Mehr liked this
Rastin Mehr
Rastin Mehr
February 21 2017 Permalink
Good, don't forget a database backup of your 4.2.4 before upgrading to 4.3. There is a big change in both the db schema and file structure. Your db size will be smaller though as well as your codebase size.
Unknown Person liked this
Martin Grosz
Martin Grosz
October 09 2017 Permalink
Below are Google Map APIs. I will be trying "Google Maps JavaScript API"
-----------------

Google Places API for iOS
Make your iOS app stand out with detailed information about 100 million places


Google Places API for Android
Make your Android app stand out with detailed information about 100 million places


Google Maps Geocoding API
Convert between addresses and geographic coordinates.


Google Static Maps API
Simple, embeddable map image with minimal code.


Google Maps JavaScript API
Maps for your website


Google Maps SDK for iOS
Maps for your native iOS app.


Google Maps Android API
Maps for your native Android app.


Google Maps Embed API
Make places easily discoverable with interactive Google Maps.


Google Maps Coordinate API
The Google Maps Coordinate API is no longer supported. If you are a current paying customer,…


Google Maps Time Zone API
Time zone data for anywhere in the world.


Google Maps Roads API
Snap-to-road functionality to accurately trace GPS breadcrumbs.


Google Maps Geolocation API
Location data from cell towers and WiFi nodes.


Google Maps Elevation API
Elevation data for any point in the world.


Google Maps Distance Matrix API
Travel time and distance for multiple destinations.


Google Maps Directions API
Directions between multiple locations.


Google Street View Image API
Real-world imagery and panoramas.


Street View Publish API
Publishes 360 photos to Google Maps, along with position, orientation, and connectivity metadata.…


Google Picker API
Google Picker API enables users to select photos, videos, maps and documents stored in Google…


Google Places API Web Service
Get detailed information about 100 million places
Martin Grosz
Martin Grosz
October 09 2017 Permalink
My installation (v4.3.6) complains:

Couldn't find the location.json file!

What did I miss?
Rastin Mehr
Rastin Mehr
October 10 2017 Permalink
@martingrosz it is the "Google Maps JavaScript API". Could you please start a new topic for any issues that you are experiencing?
Rob Saric
Rob Saric
June 13 2018 Permalink
@rastin - does the location component require any modifications based on the changes from Google maps? I registered an API key, but i'm not sure how to differentiate between a server/browser key (the above links redirect to the same page).

Previous link for browser key:
https://developers.google.com/maps/documentation/javascript/adding-a-google-map#key

Previous link for server key:
https://developers.google.com/maps/documentation/geocoding/get-api-key

Let me know if anyone has any thoughts?
@robsaric looks like we need to update com_locations, because google is now passing client_id instead of key and they have a new way of issuing keys. Looks like right now our website is using legacy support. I'll put that in the fixes for the next maintenance release. I know our facebook OAuth needs updating too.
Unknown Person liked this
Rob Saric
Rob Saric
June 13 2018 Permalink
@rastin - ok thanks for the update.
Hopefully the core logic hasn't changed and all we need to do is to rename some labels and variables.
Rob Saric
Rob Saric
June 13 2018 Permalink
Love location as a core feature, so I hope it's not a tough fix. So many practical ways I can think of organizations leveraging it, my hope is to build an autonomous check-in/check-out process when people are on premise in certain locations. Kudos on your work with Anahita - glad to be building with it again.
Rastin Mehr liked this
@robsaric I just checked and not much has changed on google services. Perhaps it would be better if we renamed the Server Key to Geocoding Key and rename Browser Key to Maps API Key. The current locations would work with Google's free service which is quite generous. At this point we aren't going to bother with incorporating with Google's premium service until someone ask us. I don't think any of the Anahita installations are generating the kind of traffic that require Google's Premium account.
@robsaric can you try the same key for both fields and let me know if it is working?
@robsaric the fix is in. Locations now works with just one google maps platform api key

Powered by Anahita