Giter Site home page Giter Site logo

sharedstreets-api's Introduction

SharedStreets API

Global SharedStreets Tile Sets

SharedStreets generates and publishes a global OpenStreetMap-derived tile set of street segment references, geometries, intersections and metadata encoded in protocol bufffer format (see the SharedStreets Referencing System for details). These tiles are generated from periodic weekly planet.osm snapshots and converted to mercator z-12 tiles. The tiles are made available for download via the following endpoint:

https://tiles.sharedstreets.io/osm/{planet-yymmdd}/12-{x}-{y}.{geometry|reference|metadata|intersection}.6.pbf

For a givien planet tile build (e.g. planet-180430) a valid request looks like:

https://tiles.sharedstreets.io/osm/planet-180430/12-1171-1566.geometry.6.pbf

Versioned OSM data sources

SharedStreets maintains ~monthly global builds for OpenStreetMap, starting from March 2018. Currently available planet data sets are include:

  • planet-180312
  • planet-180430 (current default for API calls)
  • planet-180528
  • planet-180625
  • planet-180730
  • planet-180827
  • planet-180924
  • planet-181029
  • planet-181126
  • planet-181224

SharedStreets API

SharedStreets maintains an API that provides convenience functions on top of the tile data sets. These functions convert data to JSON and GeoJSON formats and allow dynamic map matching from point and line geometries.

Base URL + Versioning

The SharedStreets API calls described below can be made via the following semantically versioned endpoint:

https://api.sharedstreets.io/v0.1.0[/request]

All API endpoints require a valid key to be included in the request.

Data source

SharedStreets API calls target specific data sources for matching and ID look up. Current API calls default to the planet-180430 OSM data source, but can be set to use any available OSM data source by using the &dataSource=[osm/planet-yymmdd] querystring parameter. Future versions of the API will allow selection of GIS and other non-OSM data sources.

Public API Endpoints

Identifiers

API Endpoints requiring API Key authorization

Geometries

Endpoints for requesting SharedStreets data as GeoJSON:

Point and Geometry Matching

Endpoints for dynamic map matching from point and line geometries:

sharedstreets-api's People

Contributors

kpwebb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sharedstreets-api's Issues

Dedicated bus lanes not getting a referenceId in POST /match/geoms API

Like the issue with the Python API, when I try to match a line within a dedicated bus lane, the API doesn't return a referenceId.

I assumed this is realted to the level 6 of sharedstreet which doen't take into account service roads (type 7 does).

In OSM, dedicated bus lanes are tagged as service roads, according to OSM standars:

For dedicated, separate bus tracks, use highway=service, access=no, psv=designated (or psv=yes)

This was the LineString I used to test it (bearingTolerance=50&searchRadius=10) :

{'type': 'FeatureCollection',
 'features': [{'id': '0',
   'type': 'Feature',
   'properties': {},
   'geometry': {'type': 'LineString',
    'coordinates': ((-58.3813759227416, -34.606569952195585),
     (-58.38135557659362, -34.60693988197623))},
   'bbox': (-58.3813759227416,
    -34.60693988197623,
    -58.38135557659362,
    -34.606569952195585)}],
 'bbox': (-58.3813759227416,
  -34.60693988197623,
  -58.38135557659362,
  -34.606569952195585)} 

service seems to be unavailable

The tiles.sharedstreets.io service seems to be unavailable. Attempts to access tiles from this service result in errors.
Anyone can help, please?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.