Project

General

Profile

Usage » History » Version 2

Rob Tjalma, 09/09/2016 12:27 PM

1 1 Rob Tjalma
h1. Usage
2 1 Rob Tjalma
3 1 Rob Tjalma
h3. Search options.
4 1 Rob Tjalma
5 1 Rob Tjalma
The search can be used in different ways:
6 1 Rob Tjalma
* By name
7 1 Rob Tjalma
* By coordinate
8 1 Rob Tjalma
9 1 Rob Tjalma
h3. By name
10 1 Rob Tjalma
11 1 Rob Tjalma
When searching by name, it will use the GeoNames API and the SQLite database.
12 2 Rob Tjalma
In this case, the search definition must be alphanumeric and it cannot be empty.
13 2 Rob Tjalma
14 2 Rob Tjalma
Also, the search is not case-sensitive.
15 1 Rob Tjalma
16 1 Rob Tjalma
h3. By coordinate
17 1 Rob Tjalma
18 1 Rob Tjalma
In case of searching by coordinate, the search definition must be:
19 1 Rob Tjalma
<pre>
20 1 Rob Tjalma
lon,lat
21 1 Rob Tjalma
</pre>
22 1 Rob Tjalma
23 1 Rob Tjalma
Examples of coordinate searches:
24 1 Rob Tjalma
<pre>
25 1 Rob Tjalma
3,3                ->   Correct
26 1 Rob Tjalma
145,-5             ->   Correct
27 1 Rob Tjalma
-44,170            ->   Incorrect, latitude can not be bigger than 90/-90
28 1 Rob Tjalma
-18.433,32.854     ->   Correct
29 1 Rob Tjalma
</pre>