geo

Business Map Image

Changed on

One place — or up to ten — drawn by Google, fetched by us; no key in the browser.

lat/lng centre the picture on one place with one marker, at zoom (16 unless asked). pin=lat,lng (repeated) puts lettered markers on it, A first; with pins and no centre Google fits the frame to them and zoom is only honoured when given. One of the two is required.

The Maps JavaScript API needs a key IN THE PAGE, which is why /v1/maps/browser-key exists and why it refuses to answer in production: our server key is unrestricted and that route is public, so serving it would publish the project. Minting a referrer-restricted browser key is a job in the Google console, not a code change, and until somebody does it a client-rendered map cannot draw on a deployed build.

This route needs none of that. It is authenticated, it renders server-side, and the key stays in the process — so the "is this your shop?" map works in production today. It is a picture, not a map you can drag; for a confirmation that is the right trade, and an interactive map can arrive later behind a proper browser key without this changing.

get/v1/teams/{team_id}/geo/map.png

Request

  • Base URL: https://api.stormy.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.stormy.ai/v1/teams/{team_id}/geo/map.png
  • Auth: none declared

Path parameters

team_idstring uuid required

Query parameters

latnumber nullable
lngnumber nullable
zoominteger nullable
widthinteger
heightinteger
maptypestring
pinstring[]

Headers

authorizationstring nullable
x-darwin-tokenstring nullable

Response

Successful Response

unknown required

Changes

    • breaking

      for the query request parameter zoom, default value 16 was removed

    • info

      added the new optional query request parameter pin

    • info

      the query request parameter lat became optional

    • info

      the query request parameter lng became optional

    • info

      query request parameter lat list-of-types was widened by adding types null

    • info

      query request parameter lng list-of-types was widened by adding types null

    • info

      query request parameter zoom list-of-types was widened by adding types null

    • info

      for the query request parameter lat, the type was generalized from number to no type

    • info

      for the query request parameter lng, the type was generalized from number to no type

    • info

      for the query request parameter zoom, the type was generalized from integer to no type