scottstamp / PokemonGo-Map

Reuploaded from AHAAAAAAA/PokemonGo-Map with latest fixes
GNU Affero General Public License v3.0
23 stars 23 forks source link

How To Update Location with Lat/Lon With Http Request? #34

Open jsl303 opened 7 years ago

jsl303 commented 7 years ago

Is there way to update the scan location with latitude/longitude using http request? If so, how? Thanks!

pheiberg commented 7 years ago

Sending a POST to /next_loc?lat=xx.xxx&lon=yy.yyy should work. You can also send the parameters in the body.

jsl303 commented 7 years ago

Thanks! That explains.

I was using get instead of post.

Also as far as getting raw json, why are there parameters for ne and sw with latitude and longitude?

On 8/8/2016 2:49 PM, Peter Heiberg wrote:

Sending a POST to /next_loc?lat=xx.xxx&lon=yy.yyy should work. You can also send the parameters in the body.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/scottstamp/PokemonGo-Map/issues/34#issuecomment-238338181, or mute the thread https://github.com/notifications/unsubscribe-auth/ALDSx2Q9EzvIsKayrK-ouLiM-Z02RO3Uks5qd3pKgaJpZM4Jen7t.