Geocode Address With Query
curl --request POST \
--url https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address_query": "1600 Amphitheatre Parkway Mountain View CA"
}
'import requests
url = "https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query"
payload = { "address_query": "1600 Amphitheatre Parkway Mountain View CA" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({address_query: '1600 Amphitheatre Parkway Mountain View CA'})
};
fetch('https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address_query' => '1600 Amphitheatre Parkway Mountain View CA'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query"
payload := strings.NewReader("{\n \"address_query\": \"1600 Amphitheatre Parkway Mountain View CA\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"address_query\": \"1600 Amphitheatre Parkway Mountain View CA\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address_query\": \"1600 Amphitheatre Parkway Mountain View CA\"\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"location": {
"latitude": 123,
"longitude": 123
},
"addressComponents": [
{
"longText": "<string>",
"types": [
"<string>"
],
"languageCode": "<string>",
"shortText": "<string>"
}
],
"bounds": {
"high": {
"latitude": 123,
"longitude": 123
},
"low": {
"latitude": 123,
"longitude": 123
}
},
"formattedAddress": "<string>",
"granularity": "<string>",
"place": "<string>",
"placeId": "<string>",
"plusCode": {
"compoundCode": "<string>",
"globalCode": "<string>"
},
"postalAddress": {
"addressLines": [
"<string>"
],
"administrativeArea": "<string>",
"languageCode": "<string>",
"locality": "<string>",
"organization": "<string>",
"postalCode": "<string>",
"recipients": [
"<string>"
],
"regionCode": "<string>",
"revision": 123,
"sortingCode": "<string>",
"sublocality": "<string>"
},
"postalCodeLocalities": [
{
"text": "<string>",
"languageCode": "<string>"
}
],
"types": [
"<string>"
],
"viewport": {
"high": {
"latitude": 123,
"longitude": 123
},
"low": {
"latitude": 123,
"longitude": 123
}
}
}
]
}Google Maps
Geocode Address With Query
Geocode Address With Query
POST
https://api.aisa.one
/
apis
/
v1
/
google-maps
/
geocode-address-with-query
Geocode Address With Query
curl --request POST \
--url https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address_query": "1600 Amphitheatre Parkway Mountain View CA"
}
'import requests
url = "https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query"
payload = { "address_query": "1600 Amphitheatre Parkway Mountain View CA" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({address_query: '1600 Amphitheatre Parkway Mountain View CA'})
};
fetch('https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address_query' => '1600 Amphitheatre Parkway Mountain View CA'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query"
payload := strings.NewReader("{\n \"address_query\": \"1600 Amphitheatre Parkway Mountain View CA\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"address_query\": \"1600 Amphitheatre Parkway Mountain View CA\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address_query\": \"1600 Amphitheatre Parkway Mountain View CA\"\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"location": {
"latitude": 123,
"longitude": 123
},
"addressComponents": [
{
"longText": "<string>",
"types": [
"<string>"
],
"languageCode": "<string>",
"shortText": "<string>"
}
],
"bounds": {
"high": {
"latitude": 123,
"longitude": 123
},
"low": {
"latitude": 123,
"longitude": 123
}
},
"formattedAddress": "<string>",
"granularity": "<string>",
"place": "<string>",
"placeId": "<string>",
"plusCode": {
"compoundCode": "<string>",
"globalCode": "<string>"
},
"postalAddress": {
"addressLines": [
"<string>"
],
"administrativeArea": "<string>",
"languageCode": "<string>",
"locality": "<string>",
"organization": "<string>",
"postalCode": "<string>",
"recipients": [
"<string>"
],
"regionCode": "<string>",
"revision": 123,
"sortingCode": "<string>",
"sublocality": "<string>"
},
"postalCodeLocalities": [
{
"text": "<string>",
"languageCode": "<string>"
}
],
"types": [
"<string>"
],
"viewport": {
"high": {
"latitude": 123,
"longitude": 123
},
"low": {
"latitude": 123,
"longitude": 123
}
}
}
]
}Request contract
- Method and path: POST /apis/v1/google-maps/geocode-address-with-query
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/google-maps/geocode-address-with-query
{
"operationId": "google-maps.geocode-address-with-query",
"method": "POST",
"path": "/apis/v1/google-maps/geocode-address-with-query",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"address_query": {
"description": "The unstructured address to geocode. This should be a single string containing the full address (e.g., '1600 Amphitheatre Parkway Mountain View CA'). Include city, state/region, and country where possible — incomplete or ambiguous strings may return zero results or incorrect matches.",
"examples": [
"1600 Amphitheatre Parkway Mountain View CA",
"Eiffel Tower, Paris"
],
"type": "string"
},
"language_code": {
"description": "Language in which the results should be returned (e.g., 'en', 'es', 'fr').",
"examples": [
"en",
"es"
],
"type": "string"
},
"region_code": {
"description": "Region code, specified as a ccTLD two-character value (e.g., 'US', 'FR'). This parameter affects results based on applicable law.",
"examples": [
"US",
"FR"
],
"type": "string"
}
},
"required": [
"address_query"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0053 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
The unstructured address to geocode. This should be a single string containing the full address (e.g., '1600 Amphitheatre Parkway Mountain View CA'). Include city, state/region, and country where possible — incomplete or ambiguous strings may return zero results or incorrect matches.
Examples:
"1600 Amphitheatre Parkway Mountain View CA"
"Eiffel Tower, Paris"