{"componentChunkName":"component---src-templates-developers-js","path":"/en/developers/apis/3-geocoding-api/autocomplete/","result":{"data":{"childPages":{"edges":[{"node":{"fields":{"slug":"/en/developers/"},"frontmatter":{"title":"For developers","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/"},"frontmatter":{"title":"System architecture","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/api-registration/"},"frontmatter":{"title":"API portal and registration","order":-12,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/changes/"},"frontmatter":{"title":"Changes","order":-10,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/user-interfaces/"},"frontmatter":{"title":"User interfaces","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/deprecations/"},"frontmatter":{"title":"Deprecations","order":-11,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/docker-guide/"},"frontmatter":{"title":"Docker guide","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/"},"frontmatter":{"title":"APIs","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/"},"frontmatter":{"title":"Routing API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/2-routing-data-api/"},"frontmatter":{"title":"Routing data API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/4-map-api/"},"frontmatter":{"title":"Map API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/"},"frontmatter":{"title":"API architecture","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/6-api-faq/"},"frontmatter":{"title":"FAQ","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/"},"frontmatter":{"title":"Realtime APIs","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/"},"frontmatter":{"title":"Geocoding API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/7-terms-of-use/"},"frontmatter":{"title":"Terms of use","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/user-interfaces/1-digitransit-ui/"},"frontmatter":{"title":"Digitransit-ui","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/0-graphql/"},"frontmatter":{"title":"GraphQL","order":10,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/3-realtime-information/"},"frontmatter":{"title":"Real-time information","order":40,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/2-glossary/"},"frontmatter":{"title":"Glossary","order":30,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/canceled-trips/"},"frontmatter":{"title":"Canceled trips","order":80,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/disruption-info/"},"frontmatter":{"title":"Disruption info","order":70,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/4-translations/"},"frontmatter":{"title":"Translation","order":50,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/routes/"},"frontmatter":{"title":"Routes","order":100,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/stops/"},"frontmatter":{"title":"Stops","order":110,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/bicycles-scooters-cars/"},"frontmatter":{"title":"Bicycles, cars and e-scooters","order":60,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/itinerary-planning/"},"frontmatter":{"title":"Itinerary planning","order":90,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/1-routing-api/"},"frontmatter":{"title":"Routing API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/2-routing-data-api/"},"frontmatter":{"title":"Routing Data","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/4-map-api/"},"frontmatter":{"title":"Map API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/5-realtime-api/"},"frontmatter":{"title":"Real-time APIs","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/3-geocoding-api/"},"frontmatter":{"title":"Geocoding API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/1-graphiql/"},"frontmatter":{"title":"GraphiQL","order":20,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/4-map-api/background-map/"},"frontmatter":{"title":"Background map","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/1-getting-started/"},"frontmatter":{"title":"Getting started","order":10,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/address-search/"},"frontmatter":{"title":"Address search","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/autocomplete/"},"frontmatter":{"title":"Autocomplete","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/trip-updates/"},"frontmatter":{"title":"Trip updates","order":30,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/service-alerts/"},"frontmatter":{"title":"Service alerts","order":20,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/address-lookup/"},"frontmatter":{"title":"Address lookup","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/4-map-api/pois/"},"frontmatter":{"title":"Points of interest","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/vehicle-positions/"},"frontmatter":{"title":"Vehicle positions","order":40,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/3-geocoding-api/data-container/"},"frontmatter":{"title":"Data builder and container","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/3-geocoding-api/api/"},"frontmatter":{"title":"API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/vehicle-positions/high-frequency-positioning/"},"frontmatter":{"title":"High-frequency positioning","order":20,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/vehicle-positions/digitransit-mqtt/"},"frontmatter":{"title":"Digitransit MQTT broker","order":10,"redirect":null}}}]},"markdownRemark":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/autocomplete/"},"frontmatter":{"title":"Autocomplete","redirect":null,"toc":null,"description":null,"assets":null,"technologies":null,"docker":null},"html":"<p>Autocomplete can be used to search addresses and place names with incomplete search terms to provide real-time suggestions as the user types. Autocomplete is a bit faster and simpler as\nthe full search endpoint, which also works well with incomplete search strings.</p>\n<h2 id=\"endpoint\" style=\"position:relative;\"><a href=\"#endpoint\" aria-label=\"endpoint permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Endpoint</h2>\n<p><code class=\"language-text\">http://api.digitransit.fi/geocoding/v1/autocomplete</code></p>\n<h3 id=\"supported-url-parameters\" style=\"position:relative;\"><a href=\"#supported-url-parameters\" aria-label=\"supported url parameters permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Supported URL parameters</h3>\n<table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"language-text\">text</code></td>\n<td>string</td>\n<td>Text to be searched</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">boundary.rect.min_lon</code><br/><code class=\"language-text\">boundary.rect.max_lon</code><br/><code class=\"language-text\">boundary.rect.min_lat</code><br/><code class=\"language-text\">boundary.rect.max_lat</code></td>\n<td>floating point number</td>\n<td>Searches using a  boundary that is specified by a rectangle with latitude and longitude coordinates for two diagonals of the bounding box (the minimum and the maximum latitude, longitude).</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">focus.point.lat</code><br/><code class=\"language-text\">focus.point.lon</code></td>\n<td>floating point number</td>\n<td>Scores the nearby places higher depending on how close they are to the focus point so that places with higher scores will appear higher in the results list.</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">sources</code></td>\n<td>comma-delimited string array</td>\n<td>Filters results by source. Value can be <code class=\"language-text\">oa</code> (DVV address data), <code class=\"language-text\">osm</code> (<a href=\"http://openstreetmap.org/\">OpenStreetMap</a>), <code class=\"language-text\">nlsfi</code> (<a href=\"https://www.maanmittauslaitos.fi/en\">National Land Survey</a>), <code class=\"language-text\">gtfs&lt;feedid></code>, <code class=\"language-text\">citybikes&lt;network></code>. Here feedid refers to GTFS feed identifier e.g. hsl and network is the citybike network identifier e.g. smoove.</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">layers</code></td>\n<td>comma-delimited string array</td>\n<td>Filters results by layer (<code class=\"language-text\">address</code>, <code class=\"language-text\">venue</code>, <code class=\"language-text\">street</code>, <code class=\"language-text\">stop</code>, <code class=\"language-text\">station</code>, <code class=\"language-text\">bikestation</code>, <code class=\"language-text\">neighbourhood</code>, <code class=\"language-text\">localadmin</code>, <code class=\"language-text\">region</code>)</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">lang</code></td>\n<td>string</td>\n<td>Returns results in the preferred language if such a language-bound name version is available (value can be <code class=\"language-text\">fi</code>, <code class=\"language-text\">sv</code> or <code class=\"language-text\">en</code>).</td>\n</tr>\n</tbody>\n</table>\n<p><strong>Note:</strong> You can find out the list of GTFS feed identifiers by querying OpenTripPlanner routing api, for example:</p>\n<blockquote>\n<p><a href=\"https://api.digitransit.fi/graphiql/finland/v2/gtfs/v1?query=%257B%250A%2520%2520feeds%2520%257B%250A%2520%2520%2520%2520feedId%250A%2520%2520%257D%250A%257D\">https://api.digitransit.fi/graphiql/finland/v2/gtfs/v1?query=%257B%250A%2520%2520feeds%2520%257B%250A%2520%2520%2520%2520feedId%250A%2520%2520%257D%250A%257D</a></p>\n</blockquote>\n<p>Running this query returns the list of feed identifiers used in Finland and Estonia routing services.</p>\n<p>Vehicle rental network identifiers can be examined by querying all vehicle rental stations:</p>\n<blockquote>\n<p><a href=\"https://api.digitransit.fi/graphiql/finland/v2/gtfs/v1?query=%257B%250A%2520%2520vehicleRentalStations%2520%257B%250A%2520%2520%2520%2520name%250A%2520%2520%2520%2520rentalNetwork%2520%257B%250A%2520%2520%2520%2520%2520%2520networkId%250A%2520%2520%2520%2520%257D%250A%2520%2520%2520%2520lat%250A%2520%2520%2520%2520lon%250A%2520%2520%257D%250A%257D%250A%250A\">https://api.digitransit.fi/graphiql/finland/v2/gtfs/v1?query=%257B%250A%2520%2520vehicleRentalStations%2520%257B%250A%2520%2520%2520%2520name%250A%2520%2520%2520%2520rentalNetwork%2520%257B%250A%2520%2520%2520%2520%2520%2520networkId%250A%2520%2520%2520%2520%257D%250A%2520%2520%2520%2520lat%250A%2520%2520%2520%2520lon%250A%2520%2520%257D%250A%257D%250A%250A</a></p>\n</blockquote>\n<h3 id=\"response-fields\" style=\"position:relative;\"><a href=\"#response-fields\" aria-label=\"response fields permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Response fields</h3>\n<p>The response contains an array called  <code class=\"language-text\">features</code>. Each feature has a point geometry and properties listed below:</p>\n<table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code class=\"language-text\">id</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">gid</code></td>\n<td>string</td>\n<td>Global id that consists of a layer (such as address or country), an identifier for the original data source (such as openstreetmap or openaddresses), and an id for the individual record corresponding to the original source identifier, where possible.</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">layer</code></td>\n<td>string</td>\n<td>Place type (e.g. <code class=\"language-text\">address</code>), see the list of possible values in the parameter specs above</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">source</code></td>\n<td>string</td>\n<td>Data source, see the list of possible values in the parameter specs above</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">source_id</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">name</code></td>\n<td>string</td>\n<td>A short description of the location, for example a business name, a locality name, or part of an address, depending on what is being searched for and what is returned.</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">postalcode</code></td>\n<td>number</td>\n<td></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">postalcode_gid</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">confidence</code></td>\n<td>number</td>\n<td>An estimation of how accurately this result matches the query. Value 1 means perfect match.</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">distance</code></td>\n<td>number</td>\n<td>A distance from the focus point if it is given (in kilometers)</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">accuracy</code></td>\n<td>string</td>\n<td>Returns always coordinates of just one point. If the object is originally an area or a line like a road, then the centroid is calculated (value can be point or centroid).</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">country</code></td>\n<td>string</td>\n<td>Places that issue passports, nations, nation-states</td>\n</tr>\n<tr>\n<td><code class=\"language-text\">country_gid</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">country_a</code></td>\n<td>string</td>\n<td><a href=\"https://en.wikipedia.org/wiki/ISO_3166-1\">ISO 3166-1 alpha-3 country code</a>, for example <em>FIN</em></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">region</code></td>\n<td>string</td>\n<td>For example <em>Uusimaa</em></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">region_gid</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">localadmin</code></td>\n<td>string</td>\n<td>Local administrative boundaries, for example <em>Helsinki</em></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">localadmin_gid</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">locality</code></td>\n<td>string</td>\n<td>Towns, hamlets, cities, for example <em>Helsinki</em></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">locality_gid</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">neighbourhood</code></td>\n<td>string</td>\n<td>Social communities, neighbourhoods, for example <em>Itä-Pasila</em></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">neighbourhood_gid</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code class=\"language-text\">label</code></td>\n<td>string</td>\n<td>A human-friendly representation of the place with the most complete details, that is ready to be displayed to an end user, for example <em>East-West Pub, Itä-Pasila, Helsinki</em>.</td>\n</tr>\n</tbody>\n</table>\n<p><strong>Note:</strong> Not exactly the same fields are returned for all searches because all object locations do not have the same data available, for example neighborhood is not in use with all objects.</p>\n<h2 id=\"examples\" style=\"position:relative;\"><a href=\"#examples\" aria-label=\"examples permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Examples</h2>\n<h3 id=\"search-for-kamp\" style=\"position:relative;\"><a href=\"#search-for-kamp\" aria-label=\"search for kamp permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Search for 'kamp'</h3>\n<blockquote>\n<p><a href=\"https://api.digitransit.fi/geocoding/v1/autocomplete?text=kamp\">https://api.digitransit.fi/geocoding/v1/autocomplete?text=kamp</a></p>\n</blockquote>\n<h3 id=\"search-for-kamp-and-filter-results-by-street-address\" style=\"position:relative;\"><a href=\"#search-for-kamp-and-filter-results-by-street-address\" aria-label=\"search for kamp and filter results by street address permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Search for 'kamp' and filter results by street address</h3>\n<blockquote>\n<p><a href=\"https://api.digitransit.fi/geocoding/v1/autocomplete?text=kamp&#x26;layers=address\">https://api.digitransit.fi/geocoding/v1/autocomplete?text=kamp&#x26;layers=address</a></p>\n</blockquote>\n<p><strong>Note:</strong> Using parameter <strong>layers=address</strong> returns results for places having text <code class=\"language-text\">kamp</code> with a street address.</p>\n<h3 id=\"search-for-kamp-inside-a-bounding-box\" style=\"position:relative;\"><a href=\"#search-for-kamp-inside-a-bounding-box\" aria-label=\"search for kamp inside a bounding box permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Search for 'kamp' inside a bounding box</h3>\n<blockquote>\n<p><a href=\"https://api.digitransit.fi/geocoding/v1/autocomplete?text=kamp&#x26;boundary.rect.min_lat=59.9&#x26;boundary.rect.max_lat=60.45&#x26;boundary.rect.min_lon=24.3&#x26;boundary.rect.max_lon=25.5\">https://api.digitransit.fi/geocoding/v1/autocomplete?text=kamp&#x26;boundary.rect.min_lat=59.9&#x26;boundary.rect.max_lat=60.45&#x26;boundary.rect.min_lon=24.3&#x26;boundary.rect.max_lon=25.5</a></p>\n</blockquote>\n<h3 id=\"search-for-kamp-using-a-focus-point\" style=\"position:relative;\"><a href=\"#search-for-kamp-using-a-focus-point\" aria-label=\"search for kamp using a focus point permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Search for 'kamp' using a focus point</h3>\n<blockquote>\n<p><a href=\"https://api.digitransit.fi/geocoding/v1/autocomplete?text=kamp&#x26;focus.point.lat=60.17&#x26;focus.point.lon=24.93\">https://api.digitransit.fi/geocoding/v1/autocomplete?text=kamp&#x26;focus.point.lat=60.17&#x26;focus.point.lon=24.93</a></p>\n</blockquote>\n<p><strong>Note:</strong> Using parameter <strong>focus.point</strong> sorts equally matching places depending on how close they are to the focus point.</p>\n<h2 id=\"language-preference\" style=\"position:relative;\"><a href=\"#language-preference\" aria-label=\"language preference permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Language preference</h2>\n<p>The language preference can be defined using <code class=\"language-text\">lang=xx</code> parameter, default being <code class=\"language-text\">lang=fi</code>. Unlike in reverse\ngeocoding, the preference has significance for geocoding searches only when multiple languages provide\nan equally good match.</p>\n<p><strong>Note:</strong> Part of the provided geocoding data does not include Swedish names, and part of the data\nleaves the language context unknown. This may occasionally cause unexpected errors in language selection.</p>","tableOfContents":"<ul>\n<li>\n<p><a href=\"/en/developers/apis/3-geocoding-api/autocomplete/#endpoint\">Endpoint</a></p>\n<ul>\n<li><a href=\"/en/developers/apis/3-geocoding-api/autocomplete/#supported-url-parameters\">Supported URL parameters</a></li>\n<li><a href=\"/en/developers/apis/3-geocoding-api/autocomplete/#response-fields\">Response fields</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"/en/developers/apis/3-geocoding-api/autocomplete/#examples\">Examples</a></p>\n<ul>\n<li><a href=\"/en/developers/apis/3-geocoding-api/autocomplete/#search-for-kamp\">Search for 'kamp'</a></li>\n<li><a href=\"/en/developers/apis/3-geocoding-api/autocomplete/#search-for-kamp-and-filter-results-by-street-address\">Search for 'kamp' and filter results by street address</a></li>\n<li><a href=\"/en/developers/apis/3-geocoding-api/autocomplete/#search-for-kamp-inside-a-bounding-box\">Search for 'kamp' inside a bounding box</a></li>\n<li><a href=\"/en/developers/apis/3-geocoding-api/autocomplete/#search-for-kamp-using-a-focus-point\">Search for 'kamp' using a focus point</a></li>\n</ul>\n</li>\n<li><a href=\"/en/developers/apis/3-geocoding-api/autocomplete/#language-preference\">Language preference</a></li>\n</ul>","excerpt":"Autocomplete can be used to search addresses and place names with incomplete search terms to provide real-time suggestions as the user types. Autocomplete is a bit faster and simpler as\nthe full…"}},"pageContext":{"slug":"/en/developers/apis/3-geocoding-api/autocomplete/"}},"staticQueryHashes":["3675773199","4050193485"]}