You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-29Lines changed: 29 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,14 +25,14 @@ Organic Maps works from *Android SDK version 21 (Android 5)* and above
25
25
First step is to clone [repository][linkRepo] or download it as an archive.
26
26
27
27
When your are done you find two folders: *lib* and *sample-app-capitals*. First one is a library project that you should add to your project.
28
-
You don't need any additional permissions in your AndroidManifest.xml to use API library, so you can write real code straight away, calling for different `OrganicMapsApi` methods (more details below).
28
+
You don't need any additional permissions in your AndroidManifest.xml to use API library, so you can write real code straight away, calling for different `Api` methods (more details below).
29
29
30
30
## Classes Overview and HOW TO
31
31
Core classes you will work with are:
32
32
33
-
*[app.organicmaps.api.OrganicMapsApi][linkApiClass] - static class with methods such as `showPointOnMap(Activity, double, double, String)` etc.
34
-
*[app.organicmaps.api.OMPoint][linkPointClass] - model of POI, includes lat, lon, name, id, and style data.
35
-
*[app.organicmaps.api.OMResponse][linkRespClass] - helps you to extract response from Organic Maps by applying `OMResponse.extractFromIntent(Intent)` to Intent. Contains OMPoint data.
33
+
*[app.organicmaps.api.Api][linkApiClass] - static class with methods such as `showPointOnMap(Activity, double, double, String)` etc.
34
+
*[app.organicmaps.api.Point][linkPointClass] - model of POI, includes lat, lon, name, id, and style data.
35
+
*[app.organicmaps.api.Response][linkRespClass] - helps you to extract response from Organic Maps by applying `Response.extractFromIntent(Intent)` to Intent. Contains Point data.
36
36
37
37
### Show Points on the Map
38
38
@@ -48,25 +48,25 @@ The simplest usage:
48
48
final double lon = ...;
49
49
final String name = ...;
50
50
// Ask Organic Maps to show the point
51
-
OrganicMapsApi.showPointOnMap(this, lat, lon, name);
51
+
Api.showPointOnMap(this, lat, lon, name);
52
52
}
53
53
...
54
54
55
55
}
56
56
57
-
For multiple points use [OMPoint][linkPointClass] class:
57
+
For multiple points use [Point][linkPointClass] class:
0 commit comments