Skip to content

Commit fbbe6ee

Browse files
Merge pull request #185 from Woosmap/dev/autocomplete_pois
Clarify Types for Autocomplete
2 parents 9783e01 + 101bbed commit fbbe6ee

41 files changed

Lines changed: 1224 additions & 1153 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dist/documentation/parameters/woosmap_http_parameters_localitiesautocomplete.html

Lines changed: 12 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/documentation/parameters/woosmap_http_parameters_localitiesautocomplete.md

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,13 @@
4444

4545
- <h3 class="parameter-name" id="types">types</h3>
4646

47-
The types of suggestion to return. Multiple types can be passed using the pipe character (`|`) as a separator.
48-
49-
- `city`: includes city localities
50-
- `town`: includes town localities
51-
- `village`: includes village localities
52-
- `hamlet`: includes hamlet localities
53-
- `borough`: includes borough localities
54-
- `suburb`: includes suburb localities
55-
- `quarter`: includes quarter localities
56-
- `neighbourhood`: includes neighbourhood localities
57-
- `locality`: an alias that groups all localities (`city`, `town`, `village`, `hamlet`, `borough`, `suburb`, `quarter` and `neighbourhood`)
58-
- `postal_code`: publicly-used postal codes around the world
59-
- `address`: addresses
60-
- `admin_level`: most commonly used administrative areas
61-
- `country`: countries as whole point of interest
62-
- `airport`: includes all medium sized to international sized airports
63-
- `train_station`: includes all train stations
64-
- `metro_station`: includes all metro stations
65-
- `shopping`: includes shopping malls (or "shopping centers") - *may include private retail brands*
66-
- `museum`: includes museums
67-
- `tourist_attraction`: includes tourist attractions like the Eiffel tower
68-
- `amusement_park`: includes amusement parks like Disneyland Paris
69-
- `art_gallery`: includes art galleries
70-
- `zoo`: includes zoos
47+
Specifies the types of suggestions to return in the query. Multiple types can be combined using the pipe character (`|`) as a separator. This parameter supports a wide range of locality classifications, including:
48+
49+
- Standard locality types (e.g., cities, administrative areas, postal codes)
50+
- Points of Interest (POI) categories
51+
- POI aliases
52+
53+
These classifications enable flexible geographic data representation and querying.
7154

7255

7356
<p style="text-align: right; font-size: smaller;">Generated from the <a data-label="openapi-github" href="https://github.com/woosmap/openapi-specification" title="Woosmap OpenAPI Specification" class="external">OpenAPI specification</a>.

dist/documentation/parameters/woosmap_http_parameters_localitiesgeocode.html

Lines changed: 14 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/documentation/parameters/woosmap_http_parameters_localitiesgeocode.md

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,14 @@
4343

4444
- <h3 class="parameter-name" id="types">types</h3>
4545

46-
Specify the types of geocoding responses to return by separating multiple types with a pipe character (|). This parameter is ignored when used with the `latlng` parameter. When executing a geocode request with the `address` parameter, use this to select the expected result type.
47-
48-
- `city`: includes city localities
49-
- `town`: includes town localities
50-
- `village`: includes village localities
51-
- `hamlet`: includes hamlet localities
52-
- `borough`: includes borough localities
53-
- `suburb`: includes suburb localities
54-
- `quarter`: includes quarter localities
55-
- `neighbourhood`: includes neighbourhood localities
56-
- `locality`: includes all previous locality names
57-
- `postal_code`: publicly-used postal codes around the world
58-
- `address`: addresses
59-
- `admin_level`: most commonly used administrative areas
60-
- `country`: countries as whole point of interest
61-
- `airport`: includes all medium sized to international sized airports
62-
- `train_station`: includes all train stations
63-
- `metro_station`: includes all metro stations
64-
- `shopping`: includes shopping malls (or "shopping centers") - *may include private retail brands*
65-
- `museum`: includes museums
66-
- `tourist_attraction`: includes tourist attractions like the Eiffel tower
67-
- `amusement_park`: includes amusement parks like Disneyland Paris
68-
- `art_gallery`: includes art galleries
69-
- `zoo`: includes zoos
46+
When executing a geocode request with the `address` parameter, it specifies the types of suggestions to return in the query. Multiple types can be combined using the pipe character (`|`) as a separator. This parameter supports a wide range of locality classifications, including:
47+
48+
- Standard locality types (e.g., cities, administrative areas, postal codes)
49+
- Points of Interest (POI) categories
50+
- POI aliases
51+
52+
These classifications enable flexible geographic data representation and querying.
53+
This parameter is ignored when used with the `latlng` parameter.
7054

7155

7256
<p style="text-align: right; font-size: smaller;">Generated from the <a data-label="openapi-github" href="https://github.com/woosmap/openapi-specification" title="Woosmap OpenAPI Specification" class="external">OpenAPI specification</a>.

dist/documentation/schemas/woosmap_http_schema_localitiesautocompletecollectionresponse.html

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/documentation/schemas/woosmap_http_schema_localitiesautocompletecollectionresponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@ Localities Collection Response containing Localities
6464
}
6565
},
6666
{
67-
"public_id": "4Ew1mvbob3vobGMQ44AdRNY/5xE=",
67+
"public_id": "52MnrbHVWH21CLWH8VY/YWKhqeM=",
6868
"type": "locality",
6969
"types": [
7070
"locality",
7171
"village"
7272
],
73-
"description": "Little London, Hampshire, United Kingdom",
73+
"description": "London Apprentice, Cornwall, United Kingdom",
7474
"matched_substrings": {
7575
"description": [
7676
{
77-
"offset": 7,
77+
"offset": 0,
7878
"length": 4
7979
}
8080
]

dist/documentation/schemas/woosmap_http_schema_localitiesautocompleteresponse.html

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/documentation/schemas/woosmap_http_schema_localitiesautocompleteresponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Attributes describing a locality. Not all attributes will be available for all l
1212
| <h4 id="LocalitiesAutocompleteResponse-public_id" class="add-link schema-object-property-key"><code>public_id</code></h4> | optional | string | <div class="nonref-property-description"><p>Contains a unique ID for each suggestion. Please use this ID if you need to give us feedbacks on results. This ID is also required to perform Localities Details request.</p></div> |
1313
| <h4 id="LocalitiesAutocompleteResponse-related" class="add-link schema-object-property-key"><code>related</code></h4> | optional | [LocalitiesAutocompleteRelated](#LocalitiesAutocompleteRelated "LocalitiesAutocompleteRelated") | See [LocalitiesAutocompleteRelated](#LocalitiesAutocompleteRelated "LocalitiesAutocompleteRelated") for more information. |
1414
| <h4 id="LocalitiesAutocompleteResponse-type" class="add-link schema-object-property-key deprecated-item hide-from-toc"><code>type</code></h4> | optional | string | <aside class="deprecated"><code>type</code> is deprecated.</aside><div class="nonref-property-description"><p>this field might be removed in the future, please use the <code>types</code> field which is more exhaustive</p></div> |
15-
| <h4 id="LocalitiesAutocompleteResponse-types" class="add-link schema-object-property-key"><code>types</code></h4> | optional | Array&lt;[LocalitiesTypes](#LocalitiesTypes "LocalitiesTypes")&gt; | <div class="ref-property-description"><p>An array containing the types of the result</p><p>See <a href="#LocalitiesTypes">LocalitiesTypes</a> for more information.</div> |
15+
| <h4 id="LocalitiesAutocompleteResponse-types" class="add-link schema-object-property-key"><code>types</code></h4> | optional | Array&lt;[LocalitiesTypesAll](#LocalitiesTypesAll "LocalitiesTypesAll")&gt; | <div class="ref-property-description"><p>An array containing the types of the result</p><p>See <a href="#LocalitiesTypesAll">LocalitiesTypesAll</a> for more information.</div> |
1616

1717
<h4 class="schema-object-example" id="LocalitiesAutocompleteResponse-example">Example</h4>
1818

dist/documentation/schemas/woosmap_http_schema_localitiesgeocoderesponse.html

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)