Project

General

Profile

GeTS API » History » Revision 8

Revision 7 (Кирилл Кулаков, 10/21/2013 01:18 PM) → Revision 8/13 (Никита Давыдовский, 11/05/2013 11:34 AM)

h1. GeTS API 

 API based on HTTP protocol and YMapsML language. 

 {{toc}} 

 h2. Points 

 

 h3. Add point 

 Adds one or several points into database. 

 *Request should be http://kappa.cs.karelia.ru/~davydovs/gets/addPoints.php* 

 Request: 
 <pre> 
 <request token="%token%" isPublic="%true/false%" channel="%channel%"> 
   <point> 
     <!-- points in Yandex format --> 
   </point> 
 <request> 
 </pre> 

 Params: 
 * %token% - user's token (see function *login*) 
 * %true/false% - true if point should be in public space, otherwise - false 
 * %channel% - the name of user's channel or name of category channel 
 * list of points 

 Response: 
 <pre> 
 <response> 
 %message% 
 %error% 
 <response> 
 </pre> 

 Request should be kappa.cs.karelia.ru/~davydovs/gets/addPoints.php 

 h3. Remove point 

 h3. Load points 

 Loads points for circle defined by given radius, latitude and longitude. 

 *Request should be http://kappa.cs.karelia.ru/~davydovs/gets/loadPoints.php* 

 Request: 
 <pre> 
 <request token="%token%" isPublic="%true/false%" radius="%radius%" latitude="%latitude%" longitude="%longitude%"> 
 <request> 
 </pre> 

 Response: 
 <pre> 
 <response status="%status_code%"> 
    <!-- list of points in Yandex format --> 
 <response> 
 </pre> 

 h3. Update point 

 h2. Tracks 

 h3. Add track 

 h3. Load track 

 h3. Update track's info 

 h3. Remove track 

 h2. Category 

 h3. addCategory 

 h3. getCategory 

 h2. Users 

 h3. Registration 

 h3. Authorization 

 h3. Quit session 

 h3. Remove user