Ippuku – Japan map
v1.0.0Find toilets, trash cans, coin lockers, smoking areas, vending machines and stamps in Japan.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
find_nearby_places Find nearby places
Find the closest vending machines, toilets, smoking areas, trash cans, stamp stations or coin lockers in Japan around a point or in one of Ippuku's areas, closest first, with distance, attributes and a link to the map. Use it whenever the user asks where the nearest such place is, for example "Where can I smoke near Namba?". Pass either area (see list_areas) or lat and lon, not both. If nothing is found, retry with a larger radius.
| Parameter | Type | Description |
|---|---|---|
area | string | An area from GET /v1/areas, such as osaka/namba. Uses the area's center and radius. Pass either area or lat and lon, not both. |
category | string | Only places of this category. Without it, all categories. |
lat | number | Latitude of the center, WGS84. Required with lon unless area is given. |
limit | integer | Maximum number of places, closest first. |
lon | number | Longitude of the center, WGS84. Required with lat unless area is given. |
radius | integer | Search radius in meters. Default 1000, with area the area's radius (and at most that). |
list_areas List areas
List the areas Ippuku knows (neighborhoods of big cities such as Shinjuku, Namba or Gion, and smaller towns such as Kamakura), with their slug, center, radius and the number of places per category. Use it to find the slug to pass as area to find_nearby_places, or to see where Ippuku has data.
get_place Show a place
Show one place with all its attributes, votes, photo count and its link to the map. Use it when the user wants details about a place from find_nearby_places, such as opening hours or whether it is indoors.
| Parameter | Type | Description |
|---|---|---|
id * | string | The id of a place, from find_nearby_places. |