dgoguerra / pokego-scan

Scan pokemon through PokeVision's API
47 stars 13 forks source link

Scan doesn't work with negative latitudes #1

Closed andrewjbennett closed 8 years ago

andrewjbennett commented 8 years ago

I'm not sure of a nice patch, but I've hacked it locally by starting the latitude field with any valid character and then ignoring that when setting the latitude, eg "x-30.1234,100.1234", then taking coords.latitude = arr[0].substring(1).

dgoguerra commented 8 years ago

You are right, I didn't realize about that situation.

You could avoid the error by using -- to stop parsing the rest of the arguments as options:

$ pokego-scan -- -30.1234,100.1234

Hope that covers your problem! I'll update the readme and close the issue for now.