- Takes: Image
- Takes: URL
- Active: contacts the target
- Plan: Enterprise
If the image has GPS EXIF data it is returned directly; otherwise the AI predicts the location. Predictions are keyed by rank in topk_predictions_dict, and the top one is repeated in city, province, ai_country, ai_lat, ai_lon and ai_confidence.
Request body (JSON) · 10ShowHide
TOKEN
Your API token
IMAGE
Base64-encoded image or image URL
TOP_K
Number of predictions to return, 1 to 10 (default 10)
COUNTRY_CODE
2-letter country code to restrict the search
ADMIN1
Region or state name; requires COUNTRY_CODE
ADMIN2
County or district; requires COUNTRY_CODE and ADMIN1, some countries only
Center_LATITUDE
Latitude of the search area centre
Center_LONGITUDE
Longitude of the search area centre
RADIUS
Search radius in km around the centre (max 25)
CONTEXT
Free-text hints about the photo, up to 500 characters
Response fields · 16ShowHide
topk_predictions_dict
Predictions keyed by rank ("1" is the best)
city
Predicted city
province
Predicted province
country
Predicted country
confidence
Confidence of the prediction
gps[]
Latitude, then longitude
ai_country
Top-1 predicted country
ai_lat
Top-1 predicted latitude
ai_lon
Top-1 predicted longitude
ai_confidence
Top-1 confidence
exif_lat
Latitude from EXIF, if present
exif_lon
Longitude from EXIF, if present
camera_maker
Camera maker from EXIF
camera_model
Camera model from EXIF
timestamp
Capture time from EXIF
message
Present when no location is found in the search area
curl -X POST 'https://api.picarta.ai/v1/geolocalize' \
-H 'Content-Type: application/json' \
-d '{"TOKEN":"YOUR_API_KEY","IMAGE":"https://example.com/photo.jpg","TOP_K":3,"COUNTRY_CODE":"IT","ADMIN1":"Toscana"}'{
"topk_predictions_dict": {
"1": {
"address": {
"city": "Exampleville",
"country": "Italy",
"province": "Example Province"
},
"confidence": 0.94,
"gps": [
43.1,
11
]
}
},
"ai_confidence": 0.94,
"ai_country": "Italy",
"ai_lat": 43.1,
"ai_lon": 11,
"city": "Exampleville",
"province": "Example Province",
"camera_maker": "Example Camera Co",
"camera_model": "EX-1",
"timestamp": "2020:01:01 12:00:00"
}