M
M
mletov2017-05-22 15:45:15
Java
mletov, 2017-05-22 15:45:15

How to write an analogue of Pokemon Go?

I know the question sounds a little naive and noobish, but, be that as it may, this is the problem statement.
I was assigned to develop an analogue of Pokemon Go. The analogue, of course, is truncated, no interactive battles, just place objects in some place so that the user, looking through the camera at this place, sees them, and by clicking on the object it disappears and a record is made in the database.
I have not been involved in commercial development for Android.
By main occupation, I write for the web: ASP.NET WebForms/MVC. Experience in desktop programming is small, but there is.
Java itself, after C#, doesn't really scare me.
I see the server part as SqlServer + WebApi.
I suppose to organize the receipt of the object and the entry into the database of the captured object through WebApi.
I dug into Android, sketched out some form, sent http requests - all this does not bother me.
Actually, questions:
- How to store coordinates of object in base? The matter is that it is required to place still object at some height. T e latitude and longitude is not enough. What should be taken as a parameter of the height at which the object is above the ground (for example, in the window of a house)? Altitude above sea level?
- How to organize the admin panel so that these objects can be placed in the right places? It turns out that by clicking on the visible area in the camera, the latitude-longitude is determined and written to the database. Or can you still not personally go to places on purpose, but arrange Pokemon based on coordinates?
- I'm interested in the specifics of Android and Api of working with the camera.
This question is generally a dark forest, I don’t even know how to approach it. How does PG determine when hovering the camera that there should be a Pokémon in this place? A request is sent to an external server that there is a certain area in the camera view area, the range of latitude-longitude, by which it is searched in the database?
- Well, throw some useful links, plz, on the API for working with the camera and its interaction with GEO positioning.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2017-05-22
@DMGarikk

You are asking a question about the implementation of paragraph 2 of the classic example with an owl :)
1) Altitude - yes above sea level, read the description of the GPS protocol (NMEA 0183), you will still start from it
2) I can’t seriously answer if you are like that pose the question .... yes, now it’s the 21st century and in order to write the coordinate into the database you don’t need to walk with your feet with the navigator, but you can directly write three digits into the database through your favorite database manager and voila, this will be a reflection of the real object on the coordinate grid. Yandexmaps, OSM and Googlemaps are in your hands so that you don’t randomly poke ...
then I can’t say anything at all, it’s easier to implement the task for you :)

Y
Yuri, 2017-05-22
@riky

in PG, as far as I know, there are a lot of hacks related to positioning. For example, satellites are almost invisible indoors. secondly, the GPS location can jump tens and hundreds of meters even when the user is standing, especially since the phones and the quality of the sensors are different for everyone. therefore, in its pure form, according to GPS coordinates, it will not be usable.
PG, in my opinion, actively use acceleration sensors to determine movement over short distances.
in general, there is enough haemorrhoids, the task is unlikely to be solved head-on, at least with the same more or less acceptable quality.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question