Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capabilities request spec. #12

Open
kiselev-dv opened this issue Jul 20, 2015 · 2 comments
Open

Capabilities request spec. #12

kiselev-dv opened this issue Jul 20, 2015 · 2 comments

Comments

@kiselev-dv
Copy link

We need a way to return a meta data about geocoder, such as:

Capabilities

For instance, do geocoder have:

  • Inverse geocoding API
  • search as you type API
  • fuzzy searching
  • massive geocoding API
  • POIs search (it may be a part of regular search api, standalone endpoint )
  • Indexing API (is it possible to fetch sitemap.xml and html snapshots of addresses)
"capabilities": {
     "inverse_geocode": {
          // Required
          "endpoint": "mygeocoder.org/inverse/meta"
     },
     "live_search": {
          "endpoint": "mygeocoder.org/live/meta",
          // Minimal length of query, optional.   
          "minimal_length": 2
     }
}

Languages

For instnce, my geocoder have been optimized for russian language. It may be used for any other language, but with ru queries it gains some advantages.

Maybe something like preffered locale in http will fit our needs.

Coverage

For which territories our geocoder is suitable

"coverage": [{ 
        "name":"Russia",
        "internal_id":"12345",
        "country":"ru",
        "geometry": {
              "type": "polygon",
              "last_update": "timestamp",
              "coordinates": [....]
        }
    }, {
       //some other territory    
    }
]
@yohanboniface
Copy link
Member

Excellent!
I think that is something the Pelias amigos are working on too. @dianashk does that match your work on standardizing the API itself?

@kiselev-dv
Copy link
Author

I've forgotten to add that mygeocoder.org/inverse/meta.{json|xml} in that case points to detailed specification of API, with parameters and other API specific info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants