NAV
bash javascript

Info

Welcome to the generated API reference. Get Postman Collection

general

Function find all the location of the user location in radius of 1km

Example request:

curl -X POST "http://api.geotag.rs/api/getOneKmNearestLocation" \
    -H "Content-Type: application/json" \
    -d '{"token":"nisi","latitude":0.67,"longitude":67159.160590421}'
const url = new URL("http://api.geotag.rs/api/getOneKmNearestLocation");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "nisi",
    "latitude": 0.67,
    "longitude": 67159.160590421
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getOneKmNearestLocation

Body Parameters

Parameter Type Status Description
token string optional User token.
latitude float required latitude of location.
longitude float required longitude of location.

Function find nearest municipality, city, street and number for given location

Example request:

curl -X POST "http://api.geotag.rs/api/getNearestLocations" \
    -H "Content-Type: application/json" \
    -d '{"token":"voluptates","latitude":31275.32324077,"longitude":21.7}'
const url = new URL("http://api.geotag.rs/api/getNearestLocations");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "voluptates",
    "latitude": 31275.32324077,
    "longitude": 21.7
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getNearestLocations

Body Parameters

Parameter Type Status Description
token string optional User token.
latitude float required latitude of location.
longitude float required longitude of location.

Function returns the location for the given municipality, settlement, street, number

Example request:

curl -X POST "http://api.geotag.rs/api/getLocation" \
    -H "Content-Type: application/json" \
    -d '{"token":"culpa","opstina":"cumque","naselje":"maxime","ulica":"nam","broj":"fugit"}'
const url = new URL("http://api.geotag.rs/api/getLocation");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "culpa",
    "opstina": "cumque",
    "naselje": "maxime",
    "ulica": "nam",
    "broj": "fugit"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getLocation

Body Parameters

Parameter Type Status Description
token string optional User token.
opstina string optional user municipality.
naselje string optional user city.
ulica string optional user street.
broj string optional user street number.

Function finds the streets in the 1km radius whose center is the location(longitude, latitude) and the name contains a given string

Function find nearest streets of user location in radius of 1km

Example request:

curl -X POST "http://api.geotag.rs/api/getStreet" \
    -H "Content-Type: application/json" \
    -d '{"token":"soluta","latitude":63832.7445,"longitude":164243.32415047,"string":"qui"}'
const url = new URL("http://api.geotag.rs/api/getStreet");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "soluta",
    "latitude": 63832.7445,
    "longitude": 164243.32415047,
    "string": "qui"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getStreet

Body Parameters

Parameter Type Status Description
token string optional User token.
latitude float required latitude of location.
longitude float required longitude of location.
string string optional search string.

Function finds the streets in the given radius whose center is the location(longitude, latitude)

Example request:

curl -X POST "http://api.geotag.rs/api/getStreetInKm" \
    -H "Content-Type: application/json" \
    -d '{"token":"voluptatem","latitude":2082.0584,"longitude":55168.898,"km":5}'
const url = new URL("http://api.geotag.rs/api/getStreetInKm");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "voluptatem",
    "latitude": 2082.0584,
    "longitude": 55168.898,
    "km": 5
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getStreetInKm

Body Parameters

Parameter Type Status Description
token string optional User token.
latitude float required latitude of location.
longitude float required longitude of location.
km integer optional radius.

Function find street in Belgrade

Example request:

curl -X POST "http://api.geotag.rs/api/getStreetFromName" \
    -H "Content-Type: application/json" \
    -d '{"token":"sed","string":"et"}'
const url = new URL("http://api.geotag.rs/api/getStreetFromName");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "sed",
    "string": "et"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getStreetFromName

Body Parameters

Parameter Type Status Description
token string optional User token.
string string optional search string.

Function returns street numbers from the given street

Example request:

curl -X POST "http://api.geotag.rs/api/getStreetNumbers" \
    -H "Content-Type: application/json" \
    -d '{"token":"et","id_ulice":4}'
const url = new URL("http://api.geotag.rs/api/getStreetNumbers");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "et",
    "id_ulice": 4
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getStreetNumbers

Body Parameters

Parameter Type Status Description
token string optional User token.
id_ulice integer optional street id.

Function returns the distance between the given location(longitude, latitude) and the given street number(id_broj)

Example request:

curl -X POST "http://api.geotag.rs/api/getDistance" \
    -H "Content-Type: application/json" \
    -d '{"token":"omnis","latitude":5379,"longitude":261.0154597,"id_broj":1}'
const url = new URL("http://api.geotag.rs/api/getDistance");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "omnis",
    "latitude": 5379,
    "longitude": 261.0154597,
    "id_broj": 1
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getDistance

Body Parameters

Parameter Type Status Description
token string optional User token.
latitude float required latitude of location.
longitude float required longitude of location.
id_broj integer optional street number.

Function returns a series of locations leading from the start point to the end point

Example request:

curl -X POST "http://api.geotag.rs/api/getRoute" \
    -H "Content-Type: application/json" \
    -d '{"token":"amet","locations":"quo"}'
const url = new URL("http://api.geotag.rs/api/getRoute");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "amet",
    "locations": "quo"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getRoute

Body Parameters

Parameter Type Status Description
token string optional User token.
locations string optional of geo points divide by ; (longitude,latitude;longitude,latitude...) - (20.476945,44.816354;20.501841,44.791819...).

Function returns the distance from the start point to the end point

Example request:

curl -X POST "http://api.geotag.rs/api/getDistanceFromTo" \
    -H "Content-Type: application/json" \
    -d '{"token":"deserunt","locations":"soluta"}'
const url = new URL("http://api.geotag.rs/api/getDistanceFromTo");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "deserunt",
    "locations": "soluta"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getDistanceFromTo

Body Parameters

Parameter Type Status Description
token string optional User token.
locations string optional of geo points divide by ; (longitude,latitude;longitude,latitude...) - (20.476945,44.816354;20.501841,44.791819...).

Function returns the streets for the given polygon

Example request:

curl -X POST "http://api.geotag.rs/api/getStreetsInPoly" \
-H "Content-Type: application/json" \
-d '{"token":"deserunt","polygon":"soluta"}'
const url = new URL("http://api.geotag.rs/api/getStreetsInPoly");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "deserunt",
    "polygon": "soluta"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getStreetsInPoly

Body Parameters

Parameter Type Status Description
token string optional User token.
polygon string optional string

Function returns the streets and numbers for the given polygon

Example request:

curl -X POST "http://api.geotag.rs/api/getStreetNumbersInPoly" \
-H "Content-Type: application/json" \
-d '{"token":"deserunt","polygon":"soluta"}'
const url = new URL("http://api.geotag.rs/api/getStreetNumbersInPoly");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "deserunt",
    "polygon": "soluta"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getStreetNumbersInPoly

Body Parameters

Parameter Type Status Description
token string optional User token.
polygon string optional string

Function returns numbers and streets for the given polygon

Example request:

curl -X POST "http://api.geotag.rs/api/getAddressesInPoly" \
-H "Content-Type: application/json" \
-d '{"token":"deserunt","polygon":"soluta"}'
const url = new URL("http://api.geotag.rs/api/getAddressesInPoly");

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "deserunt",
    "polygon": "soluta"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/getAddressesInPoly

Body Parameters

Parameter Type Status Description
token string optional User token.
polygon string optional string