For AOP, the value of access to social media is in its immediacy and proximity to an incident. Social media makes it possible to take advantage of people witnessing and photographing events. Incident commanders can gain intelligence on a developing incident within seconds. The usefulness of the data is dependent on time and the geographic location being filtered down to a reasonable set of results.
In AOP, the incident commander can define an area and all the spatially located Twitter and Instagram feeds are provided.
Because social media can be a valuable source of real-time information, AOP includes photos from Twitter and Instagram into its communication channels to enable you to use the data during emergency situations.
You can also configure AOP to use data from the Open Weather API to provide real time weather data information for any point on the map, or to automatically determine downwind evacuation zones when using the ERG Chemical Spill Workflow.
Before you begin social media configuration, ensure that your organization has set up standard free accounts dedicated for AOP use.
Set up dedicated accounts for the following source websites:
Open Weather Map: https://openweathermap.org/.
AOP uses Open Weather Map information in the Map Point Information and in the ERG workflow for wind direction.
When you have the accounts, you need configure the tokens provided by each account to give the AOP application access to them.
Once you have set up your dedicated AOP Twitter account, you need to:
In order to create the application, you need a valid mobile phone number to associate with the Twitter account you are using.
To create an application in Twitter:
In a browser on a computer, go to https://apps.twitter.com/.
Sign in using the username and password for your AOP-specific Twitter account.
On the Twitter Apps page, click Create New App.
On the Create an Application page, fill in the information.
Click Create your Twitter application.
Your application opens.
Select the Keys and Access Tokens tab.
To grant AOP access to Twitter:
Log into Geocortex Essentials Manager.
Click your AOP site to edit it.
On the Map page, click the Map Services tab.
In the sidebar, click Workflows.
Click beside the Twitter_Identifier workflow.
Click Next.
The Workflow Create/Edit Wizard opens.
Recent changes to the Instagram API closed access to public images. So granting AOP access to public images is more complex. Once you have set up your dedicated AOP Instagram account, you need to do the following:
Use Latitude's client ID and redirect URI to request a CODE from Instagram.
Send the CODE you received from Instagram to Latitude within an HTML request to Instagram - to exchange the CODE for an Access Token.
Add the access token to the Instagram workflow within AOP to grant AOP access to Instagram pubic images through your account.
Use Latitude's client ID and redirect-URI to request a CODE:
Open a browser and copy the following URL into the address:
https://api.instagram.com/oauth/authorize/?client_id=e7bbdb0f841943d1a4f4b626d05b0196&scope=public_content&redirect_uri=http%3A%2F%2Fwww.geocortex.com%2F&response_type=code
When the Instagram login appears, type in the Username and Password of your Instagram account and then click Log in.
The following message appears:
Click Authorize.
The following message appears in the browser:
To set up the exchange request in Postman:
https//api.instagram.com/oauth/access_token
.Enter the following Keys and Values:
When you have all the correct information in Postman, click Send.
The request to exchange the CODE for an access token is sent to Instagram.
Instagram returns an access token that appears highlighted in blue.
To grant AOP access to Instagram:
Log into Geocortex Essentials Manager.
Click your AOP site to edit it.
On the Map page, click the Map Services tab.
In the sidebar, click Workflows.
Click beside the Instagram_Identifier workflow.
Click Next.
The Workflow Create/Edit Wizard opens.
Once you have created an OpenWeatherMap account for AOP, you need to connect OpenWeatherMap to AOP.
The procedure follows these high-level steps:
To obtain the API key from OpenWeatherMap:
Open a browser and sign in to your account on OpenWeatherMap.
Select the API keys tab.
To Add the API key from OpenWeatherMap:
In Windows Explorer, navigate to the folder that contains the AOP viewer configuration files.
The default installed folder is
C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\AOP\Viewers\AOP_Viewer\VirtualDirectory\Resources\Config\Default
Open Desktop.json.js, Handheld.json.js and Tablet.json.js files in a text editor.
Search for the ContextMenuWeatherViewModel
.
Paste the API key into the apiKey value.
To add the OpenWeather Map API key the Chemical Spill Workflow:
If you want the ERG_By_Chemical feature to use weather information to estimate the impact of weather on a chemical spill, you can copy the OpenWeatherMap API key into the ERG_By_Chemical
workflow.
Log into Geocortex Essentials Manager.
Click your AOP site to edit it.
On the Map page, click the Map Services tab.
In the sidebar, click Workflows.
Click beside the Instagram_Identifier workflow.
Click Next.
The Workflow Create/Edit Wizard opens.
See also...
Configure Social Media Workflows