Reverse Geocode
1 min
code examples curl request get \\ \ url 'https //api getos1 com/locateone/v1/reverse geocode?type=string\&lat=number\&lng=number\&error radius=integer' \\ \ header 'accept application/json' \\ \ header 'x api key string'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("x api key", "string"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api getos1 com/locateone/v1/reverse geocode?type=string\&lat=number\&lng=number\&error radius=integer", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api getos1 com/locateone/v1/reverse geocode?type=string\&lat=number\&lng=number\&error radius=integer") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["x api key"] = "string" response = https request(request) puts response read body import requests import json url = "https //api getos1 com/locateone/v1/reverse geocode?type=string\&lat=number\&lng=number\&error radius=integer" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'x api key' 'string' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // success { "status" 0, "request id" "", "message" "", "data" \[ {} ] }