Address Autocomplete, Nearby Places and Routing API: LocationIQ
Pricing
from $5.00 / 1,000 place, address or timezone results
Address Autocomplete, Nearby Places and Routing API: LocationIQ
Address autocomplete, nearby POI search, timezone lookup, driving and walking directions, route optimization and distance matrix through the LocationIQ API, plus forward and reverse geocoding. Worldwide OpenStreetMap based data with US and EU servers. Bring your own key.
Pricing
from $5.00 / 1,000 place, address or timezone results
Rating
0.0
(0)
Developer
Nabeel Hassan
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a month ago
Last modified
Categories
Features
Share
Get address and place suggestions as you type, find points of interest around any coordinate, look up time zones, and plan driving or walking routes, optimized multi-stop trips and travel time matrices through the LocationIQ API with your own access token. Forward and reverse geocoding are included too.
LocationIQ is a worldwide location platform built on OpenStreetMap and other open datasets, with data centers in the US and Europe. This actor wraps eight of its read only endpoints in one place: Autocomplete, Search (forward geocoding), Reverse geocoding, Nearby places, Timezone, Directions, Optimize and Matrix. Use it to clean and complete address lists, build store and POI datasets around your locations, add time zones to customer or event records, compare delivery times between depots and stops, plan the best visiting order for a route, or feed Google Sheets, BI dashboards, a data warehouse or AI agents with location data. Bring your own API key.
BYOK, not live tested: every route and parameter comes from the OpenAPI definition LocationIQ publishes at docs.locationiq.com/openapi.yaml and its documentation at docs.locationiq.com, and every route was probed on 2026-10-26 with an invalid key on both the US and EU servers. The actor has not been run against a live LocationIQ key.
What it does
- Address autocomplete: GET /autocomplete on api.locationiq.com returns up to 20 place and address suggestions for partial text such as
Empire St, filtered by country, viewbox, layer (road, neighbourhood, suburb, city, county, state, country, postcode) or OpenStreetMap tag. - Nearby places (POI search): GET /nearby lists up to 50 points of interest within a radius of each coordinate, nearest first, with name, category, address and distance in meters. Filter with simple tags such as
restaurant,hotel,atm,hospital,fuelorparking, or OpenStreetMap class:type pairs such asamenity:cafe,tourism:hotel. - Timezone lookup: GET /timezone returns the IANA time zone name, abbreviation, full name, UTC offset in seconds and whether daylight saving time applies, now or at any Unix timestamp.
- Directions: GET /directions/{profile}/{coordinates} routes through 2 to 25 waypoints in order by car or on foot, with total distance and duration, per leg figures, optional turn by turn steps, the route geometry and up to 3 alternatives.
- Route optimization: GET /optimize/{profile}/{coordinates} finds the best order to visit 2 to 25 stops (a traveling salesman solver), as a round trip or a one way trip, and returns the visit order with the trip distance and duration.
- Distance matrix: GET /matrix/{profile}/{coordinates} computes travel time and road distance between every pair of up to 25 points, or chosen origins and destinations, one row per pair (a point paired with itself is left out).
- Forward geocoding: GET /search turns addresses and place names into coordinates, with normalized address fields and optional extra OpenStreetMap tags.
- Reverse geocoding: GET /reverse turns latitude,longitude pairs into the nearest address, at any level of detail from building to country.
- Pay only for results: lookups with no result, routes that cannot be found and lookups LocationIQ refuses are recorded as a free row that says why, never charged.
How to use it
- Get a LocationIQ access token at my.locationiq.com. The free plan includes 5,000 requests a day at 2 requests per second and 60 per minute; paid plans allow more.
- Paste the token into the API key field, or set the DATA_API_KEY environment secret. LocationIQ takes the token as the
keyquery parameter, so the actor removes it from every URL and message it logs. - Pick a mode, then fill in search texts, coordinates or routes, and any filters.
- Download the dataset as JSON, CSV or Excel, or connect it to your workflow through the Apify API, webhooks or integrations.
A missing or rejected token, a token without the scope for an API or blocked by its IP or referrer restrictions, or an account over its daily request limit ends the run cleanly with a status message that explains what to change, and nothing is charged.
Input
| Field | Modes | Description |
|---|---|---|
mode | all | autocomplete (default), search, reverse, nearby, timezone, directions, optimize or matrix |
queries | autocomplete, search | One search text per line, such as Empire State or 350 5th Avenue, New York |
coordinates | reverse, nearby, timezone, matrix | One latitude,longitude pair per line, latitude first, such as 40.748442,-73.985658 |
routes | directions, optimize | One route per line: latitude,longitude waypoints separated by semicolons |
countryCodes | autocomplete, search | ISO country codes such as us,ca,gb |
viewbox, bounded | autocomplete, search | Preferred area as lon,lat,lon,lat, and whether to restrict results to it |
layers | autocomplete | Kinds of places to return: road, neighbourhood, suburb, city, county, state, country, postcode |
tag | autocomplete, nearby | Place type: restaurant, hotel, all, or class:type pairs such as amenity:school |
limit | autocomplete, search, nearby | Results per lookup, default 5 (autocomplete up to 20, others up to 50) |
acceptLanguage | autocomplete, search, reverse | Result language such as en, fr or native |
normalizeAddress, extraTags | search, reverse | Normalized address elements (on by default) and extra OpenStreetMap details |
radius | nearby | Search radius in meters, default 100, up to 500,000 |
zoom | reverse | Detail level from 0 (country) to 18 (building, default) |
timestamp | timezone | Unix time in seconds to get the offset for; defaults to now |
profile | directions, optimize, matrix | driving (default) or walking |
alternatives | directions | Up to 3 alternative routes |
steps, geometries, overview | directions, optimize | Turn by turn steps, geometry format (polyline, polyline6, GeoJSON) and detail |
roundtrip, optimizeSource, optimizeDestination | optimize | Round trip, start at any or the first stop, end at any or the last stop |
matrixAnnotations, matrixSources, matrixDestinations | matrix | Duration, distance or both; optional origin and destination point numbers such as 0;1 |
region | all but autocomplete | us1 (default) or eu1 |
maxResults | all | The most rows this run returns and charges for (default 100) |
requestsPerMinute | all | Pacing for calls to LocationIQ (default 60, the free plan limit) |
apiKey | all | Your LocationIQ access token |
A run takes up to 1,000 search texts or coordinates, up to 500 routes, or one distance matrix of up to 25 points. Coordinates are always given latitude first; the actor converts them to the longitude,latitude order the routing services expect.
Output
One row per result. Example nearby places row for 40.748442,-73.985658 with the tag attraction (the address object shortened):
{"mode": "nearby","modeLabel": "Nearby places","query": "40.748442,-73.985658","found": true,"rank": 1,"name": "Empire State Building","displayName": "Empire State Building, 350, 5th Avenue, Korea Town, Midtown South, New York, New York, 10001, United States of America","latitude": 40.7484284,"longitude": -73.98565462,"category": "tourism","type": "attraction","distanceMeters": 1,"houseNumber": "350","road": "5th Avenue","neighbourhood": "Korea Town","suburb": "Midtown South","city": "New York","state": "New York","postcode": "10001","country": "United States of America","countryCode": "us","placeId": "423028398818","osmType": "way","osmId": "34633854","boundingBox": [40.7479226, 40.7489422, -73.9864855, -73.9848259],"address": { "name": "Empire State Building", "house_number": "350", "road": "5th Avenue" },"licence": "https://locationiq.com/attribution","note": null}
A timezone row carries timezone (such as Europe/Paris), timezoneShortName, timezoneFullName, utcOffsetSeconds and nowInDst. A directions or optimization row carries routeDistanceMeters, routeDurationSeconds, legs, geometry, waypoints (snapped to the road network) and, for optimization, visitOrder: the input stop numbers in the order to visit them. A distance matrix row carries fromIndex, toIndex, fromLocation, toLocation, fromName, toName, routeDurationSeconds and routeDistanceMeters. Columns that do not apply to a mode are null.
Pricing
| Event | Price | Charged for |
|---|---|---|
place-result | 0.005 USD | Each autocomplete suggestion, geocoding match, nearby place or timezone answer |
route-result | 0.01 USD | Each route, alternative route or optimized trip |
matrix-cell | 0.005 USD | Each origin and destination pair of a distance matrix with a travel time or distance |
Lookups with no result, pairs with no route, and refused or invalid lookups are never charged.
LocationIQ counts your usage separately against your own plan's request quota; see locationiq.com/pricing. The actor makes one LocationIQ request per search text, coordinate or route, and one per distance matrix, and reports the total at the end of the run. Use limit and maxResults to control how many rows you pay for here.
FAQ
What is the LocationIQ API?
LocationIQ, run by Unwired Labs, is a location platform offering geocoding, reverse geocoding, autocomplete, nearby places, timezone, routing and maps APIs with worldwide coverage, based mainly on OpenStreetMap data, with US and EU data centers.
Do I need my own LocationIQ API key?
Yes. This actor is bring your own key: it calls LocationIQ with your access token and your plan's limits and terms apply. Create a token at my.locationiq.com; the free plan includes 5,000 requests a day. If your token uses scopes, give it the scopes for the APIs you call.
How do I build address autocomplete or type ahead suggestions?
Choose Autocomplete and enter partial texts, one per line. Each suggestion is a row with name, displayName, coordinates and address parts. Narrow the suggestions with countryCodes, a viewbox, layers such as city or postcode, or a tag such as place:city.
How do I find restaurants, hotels or ATMs near a location?
Choose Nearby places, enter latitude,longitude pairs, set a tag such as restaurant, hotel or atm and a radius in meters. Results come back nearest first with distanceMeters. Use all for every kind of place, or class:type pairs such as amenity:cafe for anything in OpenStreetMap's map features list. The Nearby endpoint is in public beta at LocationIQ.
How do I get the time zone of a coordinate?
Choose Timezone and enter latitude,longitude pairs. Each row gives the IANA name, abbreviation, UTC offset in seconds and whether daylight saving time is in effect. Set timestamp to get the offset for a past or future moment.
How do I calculate driving time and distance between many locations?
Choose Distance matrix and enter 2 to 25 points. Each origin and destination pair (except a point paired with itself) is a row with routeDurationSeconds and routeDistanceMeters, which are the time and distance of the fastest route, not the straight line. Use matrixSources and matrixDestinations to compute only some pairs, such as depots to stops.
How do I find the best order to visit several stops?
Choose Route optimization and enter each set of stops as one line. visitOrder lists the stop numbers (counting from 0, in the order you typed them) in the optimized order. Turn off Round trip and set the trip start to first and the trip end to last for a fixed start and end point.
Why are my routing coordinates in a different order?
LocationIQ's routing services take longitude,latitude. This actor takes latitude,longitude everywhere, like most maps and spreadsheets, and converts it for you.
Can I store the results?
LocationIQ's terms let paying customers cache request and response pairs for as long as they are customers and store response data indefinitely; free accounts may cache request and response pairs for up to 48 hours. The free plan allows commercial use only with a visible link back to LocationIQ. Check the current terms at locationiq.com/tos for your use.
What do I pay?
0.005 USD per place, address or timezone result, 0.01 USD per route or optimized trip, and 0.005 USD per matrix pair, plus your own LocationIQ plan. Results that are not found are free.
Keyword map
address autocomplete API, place autocomplete, type ahead address search, address suggestions API, nearby places API, POI search API, points of interest near me, find restaurants near coordinates, timezone API, time zone by coordinates, UTC offset lookup, directions API, driving directions API, walking route API, route optimization API, traveling salesman API, multi stop route planner, distance matrix API, travel time matrix, driving distance between addresses, forward geocoding, reverse geocoding API, OpenStreetMap geocoding, LocationIQ API, LocationIQ autocomplete, LocationIQ routing.
Routes and verification
| Mode | Route | Source | Probe with an invalid key (us1 and eu1, twice each) |
|---|---|---|---|
| Autocomplete | GET api.locationiq.com/v1/autocomplete | OpenAPI spec and docs | 401 Invalid key |
| Forward geocoding | GET /v1/search | OpenAPI spec and docs | 401 Invalid key |
| Reverse geocoding | GET /v1/reverse | OpenAPI spec and docs | 401 Invalid key |
| Nearby places | GET /v1/nearby | OpenAPI spec and docs | 401 Invalid key |
| Timezone | GET /v1/timezone | OpenAPI spec and docs | 401 Invalid key |
| Directions | GET /v1/directions/{profile}/{coordinates} | OpenAPI spec and docs | 401 {"code":"Invalid key"} |
| Route optimization | GET /v1/optimize/{profile}/{coordinates} | OpenAPI spec and docs | 401 {"code":"Invalid key"} |
| Distance matrix | GET /v1/matrix/{profile}/{coordinates} | OpenAPI spec and docs | 401 {"code":"Invalid key"} |
Invented paths on the same hosts answered 404 with an HTML page, so every route above is confirmed to exist. Response shapes come from the examples in LocationIQ's OpenAPI spec and docs. The structured and postal code search, lookup, map matching, nearest, balance, static maps and map tiles endpoints are not wrapped.
Licensing and data use
This actor works only with your own LocationIQ account and access token, and LocationIQ's Terms of Use apply. Results contain OpenStreetMap data: Data © OpenStreetMap contributors, ODbL 1.0, with results © LocationIQ.com, as listed at locationiq.com/attribution and returned in each row's licence field. Credit OpenStreetMap and LocationIQ wherever you display the data. This actor is not affiliated with or endorsed by LocationIQ or Unwired Labs.