# Questions tagged [geofencing]

A GPS add-on that triggers an event when the device either moves inside or outside a virtual fence. Often used to prohibit entry to an area or prohibit the device from leaving an area.

34 questions
Filter by
Sorted by
Tagged with
1 vote
112 views

### GeoPandas geofencing problem set up

I’m a Data Scientist but very new to geospatial analysis so I’m looking for some advice how approach a problem. I’m trying to determine the speeds of cars that approach traffic lights within 200 ft. ...
• 23
913 views

### Geofencing using PostGIS

I would like to inquire about the ships within the designated area, the following picture: The latitude and longitude drawn is 118.868653 32.199966, 118.873224 32.192503, 118.876336 32.184894, 118....
• 39
625 views

### Geofences in Leaflet with live Location

I'm a newbie in terms of programming. I'm building a Web App with Angular and Leaflet, which has to locate the users position and notify him in case he is close to specific buildings. There are ...
1 vote
83 views

### What are practical means for drawing an approximately rectangular geofenced area that includes the North Pole?

A naïve geofence approach is to take a "rectangle" that has a min/max latitude and a min/max longitude. This approach fails at the meridian, but that can be fixed by inverting some logic ...
• 143
1 vote
997 views

### PostGIS - Get geofence polygon points within 100 metres of an existing geofence

Let's say I have a geofence polygon with the following coordinates POLYGON((-36.861986 174.726745,-36.859241 174.730442,-36.859821 174.730976,-36.862321 174.728156,-36.861986 174.726745)) I'd like ...
1 vote
707 views

### Draw a polyline around a route to act as geofence with leaflet routing machine [closed]

I am using leaflet routine machine to get a route between 2 points. I want to be able to draw an invisible polyline around the route and use this as a geofence and if the user goes out of the bounds ...
1 vote
342 views

### Geofencing radius distribution/ratio across multiple geofences

I understand that this problem might be simple geometry, but Im using specific shapefiles for a geographical area and looking for a specific gis solution (hopefully code). Essentially Id like to find ...
1 vote
788 views

### Determining if Point is in Polygon using PostGIS?

I want to check if a point is inside a fenced polygon. INSERT INTO polygon (name, geom) VALUES ('test', ST_GeomFromGeoJSON('{"type": "Polygon", "coordinates": [[0,0], [0,5], [5, 5], [5,0]]}')); ...
• 111
59 views

### Check is an asset (GPS route) has been on restricted road

If I have GPS route for an asset and want to cross check the position of the asset against (pre-defined) "illegal" routes to have taken (series of GPS decimal), what might be a reasonable approach? My ...
1 vote
225 views

### Calculate minimum Traveled distance from L Latlng in T time

I want some functionality in my Android/iOS application i.e. U user is travelling to L location, So when the U is 15 minute away from the L location he/she will get some Notification. What i tried so ...
• 111
231 views

### Network Based Geofence - .NET

Is it possible to create a Network Based Geofence using the .NET platform? For example, is there a way where users can "opt in" to a service on their phone without installing anything, that would ...
• 3,476
1 vote
231 views

### Make a relationship based on points and fences

I have two models on geodjango, one for tracks and one for fencing, I am trying to match both of them but I couldnt get it working as I spected. My target is check each point if it is inside a fence. ...
• 121
1 vote
1k views

### Insert a position and check for geofence entry exit in postgres with postgis

Is it possible to insert a position, and any related geofence entry exits for that position in just one query in postgres (9.6) with postgis (2.3.2)? For example given tables users, positions, fences ...
• 131
1 vote
377 views

### GeoDjango: Calculate if someone inside circle from given point [closed]

I am working in GeoDjango (with a Django 1.11 and PostGIS 2.1.4 backend). I have a model with shops in my database (i have the address of this shops) and I am trying to find all shops within 100m ...
1 vote
2k views

### How to Select an SRID? And how is it different from the SRID passed into ST_Transform?

Say I wanted to find geometries that intersect a circle at lat/long as outlined here How to Select all polygons or lines that lie at least partially within a circle with a radius?. SELECT * FROM ...
• 177
933 views

### Looking for a US state file for geofences with as few geofences per state as possible (so group islands with mainland)

UPDATED TO MUCH MORE DETAILED QUESTION I'm building a set of geofences to be installed on a GPS unit to track vehicles as they cross state lines. The list of geofences are simple latitude/longitude ...
• 146
958 views

### What are the state border outlines called which treat every state as a single entity, including surrounding waters?

What are the state border outlines called which treat every state as a single entity, including surrounding waters? I need to create a latitude/longitude pairing of each state's "borders", which I ...
• 146
14k views

### List of the United States (US) state boundaries / borders as latitude/longitude pairs for geofence?

I'm just trying to find a single simple file (CSV or XML ideally) which has the latitude and longitude pairings for each of the 50 United States (plus DC, though the addition of provinces such as ...
• 146
1 vote
107 views

### Determine when an object nears a point

Context: When an Uber vehicle is very close to the destination, there is an alert on the driver app that indicates that the destination has arrived. This determination is quite accurate. Two ...
• 111
2k views

### Correct algorithm to determinate if the user is really inside/outside a region

first time here. I'm currently building a system that control the user GPS position in order to turn on/turn off some stuff inside user's house. For example, if the user leave the house we must ...
444 views

### Any good ruby gems that can calculate a polygonal geofence?

Looking for a Gem that has polygonal geofencing. Many gems offer square or radius geofencing.
2k views

### How big does a circular geofence need to be for the curvature of the earth to matter? [duplicate]

I'm working on adding geofences to a mobile application. I know the proper way of calculating distance between two points on a sphere is using the great-circle or Haversine formula. I don't know if ...
• 309
434 views

### How does geofencing work?

How does geofencing work? I am aware that it creates a sort of polygonal bubble which can execute a certain action when you pass through it, but how does it actually do that without just constantly ...
• 21
2k views

### How to create a Polygon around a Linestring as a GeoFence in C# .NET

I'm looking for a .net library that will help to create a polygon that I can use as a Geo-fence around a route on a map. The following image demonstrates the result I'm after. Imagine that this ...
• 131
1 vote
2k views

### Geofencing (Leave/Enter geofence Timing) Issue?

I already search SE already if the question has been raised before but I can't find one so I'll ask here anyway. I'm creating a small application which involve geofencing my GPS device doesn't have a ...
1 vote
1k views

### Geofence and GPS-Tracking in QGIS

What is the easiest possibility to create a geofence and to track if subjects cross the fence? I assume the fence is a simple polygon vector? What do I need for the cars? GPS data set? GPS layer?
• 707
1 vote
213 views

### Algorithm to detect entity (aircraft, ship, etc) intrusion into geographic area [closed]

I have been tasked with coming up with an algorithm to determine whether or not an entity (aircraft, ship, etc) is inside or outside of a geographic area defined as a set of geodetic (lat/long) ...
• 11
3k views

### Geofencing: Query if a POINT is within a POLYGON

I am trying to use the following query to search if a point is within a defined POLYGON (aka a geofence I want to define): https://spatial.virtualearth.net/REST/v1/data/[DataSourceID]/[DataSourceName]/...
• 131
1 vote
2k views

### find lat,long inside polygon with regular interval of time using mysql

I have table latest location there i have lat and long with device id. one more table with fencing name,there i have polygon points. so now how i can check point lies inside polygon. i need this ...
• 11
2k views

### Python: Ray-trace a WGS84 point with heading and distance

One of my services defines geofences for a mobile app. The geofences consists of a lat/lon pair and radius in meters, in JSON, e.g.: { "geofenceId":"geofence_b39da38cff7be4b4693cbc31b2394bbb", ...
• 6,820
4k views

### Geofencing routes from point A to point B using Google Maps?

I'm working on a task where given the coordinates of a line from point A to point B, I need to create a geofence around this line (road route). But based on what I read here https://developers.google....
3k views

### Is it possible to implement Geofencing in Openlayers?

We were planning to develop an application using Openlayers, which can display the incoming GPS signals as markers and create alerts , if the markers( positions) are outside a particular zone. Is ...