Find a Local Map

Overview

This is a description of one of the six use cases for the AI Search Engine—retrieving a Google Maps link, a small picture of the map and coordinates of the requested place based on information from the internet.

An output example:

{
  "link": "https://www.google.com/maps/place/San+Francisco,+CA/data=!4m2!3m1!1s0x80859a6d00690021:0x4a501367f076adff?sa=X&ved=2ahUKEwjqg7eNz9KLAxVCFFkFHWSPEeIQ8gF6BAgqEAA&hl=en",
  "image": "https://dmwtgq8yidg0m.cloudfront.net/images/TdNFUpcEvvHL-local-map.webp"
}

The output will be the requested information retrieved from the internet—or empty brackets {} if nothing was found or if the entered query does not match the selected search type (for example, entering something like "wofujwofifwuowijufi").

How to make a call

Check how this call is made in the example below.

API Schema

get
Authorizations
AuthorizationstringRequired

Bearer key

Query parameters
followup_idstringRequired
Responses
default
application/json
get
/v1/bagoodex/local-map
default

Example

First, the standard chat completion endpoint with your query is called. It returns an ID, which must then be passed as the sole input parameter followup_id to the specific second endpoint:

Model Response:

Last updated

Was this helpful?