TOP-LEVEL CATEGORY | description | |
---|---|---|
accommodation |
Hotels, apartments, guest houses, etc. Subcategories examples: "accommodation.hotel ", "accommodation.hostel ", "accommodation.motel " |
|
activity |
Clubs, community centers |
|
commercial |
Shops and shopping centers. Subcategories examples: "commercial.supermarket ", "commercial.outdoor_and_sport.bicycle ", "commercial.clothing.women " |
|
catering |
Restaurants, cafes, bars, etc. Subcategories examples: "catering.restaurant.italian ", "catering.fast_food.kebab ", "catering.cafe.bubble_tea " |
|
education |
Schools, colleges, univercities, etc. |
|
entertainment |
Places to spend time with friends and family. c"entertainment.culture.theatre ", "entertainment.museum ", "entertainment.theme_park " |
In addition to categories, the Places API supports conditions - criteria the place should comply with. Here are examples of using categories and conditions in Places API queries:
The Places API lets you search places within specified geometry:
Places API allows more advanced searches by filtering by reachability area or isoline. The Tmaps Places API accepts a geometry generated by Isoline API as an input. For example, this can be helpful to find:
You can also make search places by proximity bias. For example, you can create the following requests with bias parameter:
Let's run a search on 100 restaurants in Munich's city center. We will query the "catering.restaurant " category for that. Here is a URL that will do the job:
https://api.tmaps.tn/v2/places?categories=catering.restaurant&filter=rect:11.549881365729718,48.15114774722076,11.58831616443861,48.12837326392079&limit=100&apiKey=YOUR_API_KEY
The API returns GeoJSON.FeatureCollection object as a result. Each result object has:
Here is an example of the response object:
type: “FeatureCollection”
features: [] 1 item
0: {} 3 keys
type: “Feature”
properties: {} 20 keys
- name:"Monument du Général Kléber "
- street:"Place Kléber "
- neighbourhood:"La Petite France "
- suburb:"Krutenau "
- city:"Strasbourg "
- municipality:"Strasbourg "
- county:"Bas-Rhin "
- state:"Grand Est "
- country:"France "
- country_code:"fr "
- lon:7.745774519707208
- lat:48.58337235
- formatted:"Monument du Général Kléber, Place Kléber, Strasbourg, France "
- address_line1:"Monument du Général Kléber "
- address_line2:"Place Kléber, Strasbourg, France "
The Place Details API provides comprehensive information about its geometry, contact information, open hours, and more. Together with standard information about the place, it's possible to query related features and analytical data. For example, all commercials that are reachable within 5 minutes, schools and kindergartens nearby, and the closest public transport stops.
We constantly increase the number of categories and conditions. The list already includes all common amenity types. However, it might not cover some cases. Contact us and describe your business case. We will be happy to extend the API to cover it!