Geocoding
Forward and reverse geocoding, offline. Created with kind geocoding.
| Type | Class |
|---|---|
"multi-osm-offline" | MultiOSMOfflineGeocodingService |
"multi-osm-offline-reverse" | MultiOSMOfflineReverseGeocodingService |
"request" | hand-written factory |
"reverse-request" | hand-written factory |
"multi-osm-offline" — MultiOSMOfflineGeocodingService
{"type": "multi-osm-offline"}
| Key | Type | Always required | Notes |
|---|
Inherited from GeocodingService:
| Property | Type | Access | Description |
|---|---|---|---|
autocomplete | boolean | read/write | |
language | string | read/write | |
maxResults | integer | read/write |
| Method | Arguments | Returns |
|---|---|---|
add | database: string | void |
calculateAddresses | request: handle | json |
remove | database: string | bool |
"multi-osm-offline-reverse" — MultiOSMOfflineReverseGeocodingService
{"type": "multi-osm-offline-reverse"}
| Key | Type | Always required | Notes |
|---|
Inherited from ReverseGeocodingService:
| Property | Type | Access | Description |
|---|---|---|---|
language | string | read/write |
| Method | Arguments | Returns |
|---|---|---|
add | database: string | void |
calculateAddresses | request: handle | json |
remove | database: string | bool |
"request"
A forward geocoding request.
| Key | Type | Notes |
|---|---|---|
query | string | what to search for |
projection | string | the projection results come back in |
"reverse-request"
A reverse geocoding request.
| Key | Type | Notes |
|---|---|---|
location | position | the point to name |
projection | string | its projection, by name |
Base classes
Not constructed directly. Their properties are reachable on every object above that derives from them.
GeocodingRequest
| Property | Type | Access | Description |
|---|---|---|---|
location | struct massif::MapPos | read/write | Returns the location attribute of the request. The matching address near the specified location (up to a specified radius) are preferred. |
locationRadius | number | read/write | Returns the location radius attribute of the request (in meters). |
projection | object std::shared_ptr<massif::Projection> | read-only | Returns the projection of the request. |
query | string | read-only | Returns the text-based query of the request. |
GeocodingService
| Property | Type | Access | Description |
|---|---|---|---|
autocomplete | boolean | read/write | |
language | string | read/write | |
maxResults | integer | read/write |
| Method | Arguments | Returns |
|---|---|---|
calculateAddresses | request: handle | json |
ReverseGeocodingRequest
| Property | Type | Access | Description |
|---|---|---|---|
location | struct massif::MapPos | read-only | Returns the location of the query. |
projection | object std::shared_ptr<massif::Projection> | read-only | Returns the projection of the query. |
searchRadius | number | read/write | Returns the search radius (in meters). |
ReverseGeocodingService
| Property | Type | Access | Description |
|---|---|---|---|
language | string | read/write |
| Method | Arguments | Returns |
|---|---|---|
calculateAddresses | request: handle | json |