diff --git a/docs/endpoints.rst b/docs/endpoints.rst index dd84bee..6dcb5ab 100644 --- a/docs/endpoints.rst +++ b/docs/endpoints.rst @@ -37,21 +37,20 @@ Static images * ``path`` - ``((fill|stroke|width)\:[^\|]+\|)*((enc:.+)|((-?\d+\.?\d*,-?\d+\.?\d*\|)+(-?\d+\.?\d*,-?\d+\.?\d*)))`` + * comma-separated ``lng,lat``, pipe-separated pairs + + * e.g. ``path=5.9,45.8|5.9,47.8|10.5,47.8|10.5,45.8|5.9,45.8`` + + * `Google Encoded Polyline Format `_ + + * e.g. ``path=enc:_p~iF~ps|U_ulLnnqC_mqNvxq`@`` + * If 'enc:' is used, the rest of the path parameter is considered to be part of the encoded polyline string -- do not specify the coordinate pairs. + + * With options (fill|stroke|width) + + * e.g. ``path=stroke:yellow|width:2|fill:green|5.9,45.8|5.9,47.8|10.5,47.8|10.5,45.8|5.9,45.8`` or ``path=stroke:blue|width:1|fill:yellow|enc:_p~iF~ps|U_ulLnnqC_mqNvxq`@`` + * can be provided multiple times - * syntax - - * comma-separated ``lng,lat``, pipe-separated pairs - - * e.g. ``path=5.9,45.8|5.9,47.8|10.5,47.8|10.5,45.8|5.9,45.8`` - - * `Google Encoded Polyline Format `_ - - * e.g. ``path=enc:_p~iF~ps|U_ulLnnqC_mqNvxq`@`` - * If 'enc:' is used, the rest of the path parameter is considered to be part of the encoded polyline string -- do not specify the coordinate pairs. - - * With Options (fill|stroke|width) - - * e.g. ``path=stroke:yellow|width:2|fill:green|5.9,45.8|5.9,47.8|10.5,47.8|10.5,45.8|5.9,45.8`` or ``stroke:blue|width:1|fill:yellow|enc:_p~iF~ps|U_ulLnnqC_mqNvxq`@`` * ``latlng`` - indicates coordinates are in ``lat,lng`` order rather than the usual ``lng,lat`` * ``fill`` - color to use as the fill (e.g. ``red``, ``rgba(255,255,255,0.5)``, ``#0000ff``)