-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgeocoding.openapi.json
More file actions
1 lines (1 loc) · 4.16 KB
/
Copy pathgeocoding.openapi.json
File metadata and controls
1 lines (1 loc) · 4.16 KB
1
{"openapi":"3.0.2","info":{"title":"Geocoding Api","version":"1.0.0","description":"Geocoding Api Documentation","contact":{"url":"https://openapi.it/en/support","name":"Support"},"termsOfService":"https://openapi.it/en/terms-and-conditions","license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"paths":{"/geocode":{"post":{"tags":["geocode"],"operationId":"geocode","summary":"Retrieve informations about a place supplying address","requestBody":{"description":"To improve success of results, please specify an address conforming to the following format: [street], [city] [postal code] [country] ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Address"}}}},"responses":{"200":{"description":"Retrieve place element","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Place"}}}}}}},"/reverse":{"post":{"tags":["reverse"],"operationId":"reverse","summary":"Get place information from ID or latitude/longitude","requestBody":{"description":"Get place information from ID or latitude/longitude: <br><ul><li>To obtain infos via ID make sure to pass the following format: <pre>{\"type\": \"id\", \"id\": \"<id>\"}</pre></li><li>To obtain infos via lat/long, make sure to provide the following format: <pre>{\"type\": \"coordinates\", \"lat\": \"<lat>\", \"long\": \"<long>\"}</pre></li></ul>","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReverseModel"}}}},"responses":{"200":{"description":"Get place element on response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Place"}}}}}}}},"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Token":{"type":"object","properties":{"token":{"type":"string","readOnly":true}}},"Address":{"type":"object","properties":{"address":{"type":"string","example":"Via Cristoforo Colombo, Roma RM"}},"required":["address"]},"ReverseModel":{"type":"object","properties":{"id":{"type":"string","example":"v442c6653ee93a5733e8a9ea2f842cd5c250d2b6ab"},"type":{"type":"string","example":"id | coordinates"},"lat":{"type":"number","format":"float","example":41.289294},"long":{"type":"number","format":"float","example":13.2349029}},"required":["type"]},"Place":{"type":"object","properties":{"success":{"type":"string","example":"true"},"elements":{"type":"object","properties":{"id":{"type":"string","example":"v442c6653ee93a5733e8a9ea2f842cd5c250d2b6ab"},"element":{"type":"object","properties":{"providedBy":{"type":"string","example":"google_maps | openstreetmap"},"latitude":{"type":"number","format":"float","example":41.808916},"longitude":{"type":"number","format":"float","example":12.4535602},"bounds":{"type":"object","properties":{"south":{"type":"number","format":"float","example":41.7691104},"west":{"type":"number","format":"float","example":12.3831487},"north":{"type":"number","format":"float","example":41.8731993},"east":{"type":"number","format":"float","example":12.4985637}}},"streetNumber":{"type":"string","example":"null"},"streetName":{"type":"string","example":"Via Cristoforo Colombo"},"postalCode":{"type":"string","example":"04019"},"locality":{"type":"string","example":"Roma"},"subLocality":{"type":"string","example":"null"},"adminLevels":{"type":"object","properties":{"1":{"type":"object","properties":{"name":{"type":"string","example":"Lazio"},"code":{"type":"string","example":"Lazio"},"level":{"type":"integer","example":1}}},"2":{"type":"object","properties":{"name":{"type":"string","example":"Citta Metropolitana di Roma"},"code":{"type":"string","example":"RM"},"level":{"type":"integer","example":2}}},"3":{"type":"object","properties":{"name":{"type":"string","example":"Roma"},"code":{"type":"string","example":"Roma"},"level":{"type":"integer","example":3}}}}},"country":{"type":"string","example":"Italy"},"countryCode":{"type":"string","example":"IT"},"timezone":{"type":"string","example":"null"}}}}}}}}},"servers":[{"url":"https://geocoding.openapi.it","description":"Production"},{"url":"https://test.geocoding.openapi.it","description":"Sandbox"}],"externalDocs":{"description":"First time here? Generate a new access token","url":"https://console.openapi.com/oauth"}}