S
S
Sasha Brahms2015-11-09 20:05:24
PHP
Sasha Brahms, 2015-11-09 20:05:24

How to design a geolocation system and save?

there is a token, when logging in, geodata (latitude, longitude) fit into it
and then the whole picture emerges on the map ...
But here's the problem, I logged in from the phone in 1 place, went to another city, I'm sitting there, old data is recorded in the token ..,
I use MVC, I got an idea:
to take geodata in the bootstrapper and compare them with the old ones, if they don’t match, then overwrite the coordinates in the token ..
or how to implement all this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-11-09
Protko @Fesor

I use MVC

Well, ok, and what does this have to do with it?
are you using JWT?
What's the point of linking the coordinates and the token then? Isn't it easier to periodically update the coordinates for the session?
In a word, if you need it for geotracking, then simply separate the token from the user's geolocation and use a separate api method to update them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question