Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement geofencing restriction #178

Open
Saturate opened this issue Aug 2, 2016 · 6 comments
Open

Implement geofencing restriction #178

Saturate opened this issue Aug 2, 2016 · 6 comments

Comments

@Saturate
Copy link
Contributor

Saturate commented Aug 2, 2016

Would be nice you could restrict the bots movement, other than max_steps, as it's a little bit hard to know, what it does, and how much it restricts.

The restriction could even be printed to the interactive google maps, for a more visual confirmation.

Granted it's not a urgent matter and should have low priority, but maybe someone (or even me) want's to try this out, and implement it.

I'm thinking the config.json could be changed to:

Current max_steps configuration:

restriction: {
  'max_steps': 5
}

Radius configuration

restriction: {
  'geofence': {
      'type': 'radius',
      'center': 'start', // 'start' (same as location) or 'lot,long' or 'city'
      'size': '500m' // 500m or 0.5km, would be nice to parse units here otherwise just default to something like meters.
   }
}

Polygon configuration

restriction: {
  'geofence': {
      'type': 'polygon',
      'center': 'start', // 'start' (same as location) or 'lot,long' or 'city'
      'points': [ // Should be cordinats that draw a shape, if the shape is unfinished, just autocomplete the last two points.
           '55.324245,12.45255',
           '55.324245,12.45255',
           '55.324245,12.45255',
           '55.324245,12.45255'
      ]
   }
}
@andythorne
Copy link
Collaborator

andythorne commented Aug 2, 2016

I like this idea and i don't think it will be too difficult (seems we can use matplotlib)!

I may be able to have a go at it tonight if i have time.

@Saturate
Copy link
Contributor Author

Saturate commented Aug 2, 2016

I agree, it seems to be pretty standart for libs. Sounds awesome :-)

@dbmurphy
Copy link
Contributor

dbmurphy commented Aug 2, 2016

Is this where navigator_waypoints in the config could be used. To plot to say a path, you would want a virtual person to take. Aka walk from the London Eye to Buckingham place, to hide park, to paddington, to Kings Cross, to the Tower of London, to the London eye.

Or do you want more a wall like "Don't leave london zone 1 or zone 2"

@andythorne
Copy link
Collaborator

A geofence is a virtual barrier, so "Don't leave london zone 1 or zone 2".

@niicojs
Copy link
Contributor

niicojs commented Aug 18, 2016

I think the current issue is that the bot tends to stay at the same place all the time turning around, at least where I live (there is lots of pokestops)

@andythorne
Copy link
Collaborator

it's not very intelligent in deciding where it wants to go, that's for sure. I tend to use waypoints as a result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants