Recent Event Map
<% events = @agent.events.where("lat IS NOT null AND lng IS NOT null").order("id desc").limit(500) %>
<% if events.length > 0 %>
<% events.each do |event| %>
<%= render "shared/map_marker", event: event %>
<% end %>
<% else %>
No events found.
<% end %>
POST URL
Location data containing latitude
and longitude
can be posted to this URL:
<%= web_requests_url(user_id: @agent.user_id, agent_id: @agent.id, secret: @agent.options['secret']) %>