Stormpulse API
The Stormpulse API allows anyone with webmaster privileges (really, the ability to place a JavaScript tag on a page) the ability to embed custom hurricane tracking maps on their own web pages.
Just send us an email (stormpulse at gmail dot com) with the domain (URL) where you want to embed the map. We’ll reply and provide you with an API key to enable you to use our maps.
TERMS OF SERVICE (short and sweet):
ELIGIBILITY: In short, we have decided that the Stormpulse map should not be embedded on pages whose content is primarily an advertisement for another product or service or whose content is primarily that of an e-commerce site. We believe this is in the best interest of our customers so as not to confuse them regarding the source and purpose of the tracking map. E-commerce aside, a simple test is to ask yourself “Does this site have anything to do with weather? Is weather presented or discussed on this site in some fashion?” If the answer is no, we are likely to determine (after review) that your site is not a good fit for the map. We are willing to re-evaluate our decision if your site changes in this regard.
LINK BACK: In exchange for providing the map, we ask API clients to place a link to http://www.stormpulse.com below the map wherever the map appears: “Powered by hurricane-tracking software from Stormpulse.com.” wherein hurricane-tracking is a link to http://www.stormpulse.com. Please note: This link must be a standard hyperlink, not the ‘nofollow’ kind (if you don’t know what this means, you don’t need to worry about it, but you can read more about nofollow if you’d like; in short, ‘nofollow’ prevents Stormpulse from receiving credit in the eyes of search engines like Google).
ADVERTISING: Currently, the map is advertisement-free. However, that is subject to change at any time. The Stormpulse map on The Palm Beach Post’s Storm2008 site has a sponsorship ad in the top-left corner. Stormpulse.com reserves the right to place a tasteful advertisement on the tracking map at any point in the future. We will, however, notify you before doing so. At that point, we will be willing to work with those of you that have contractual obligations forbidding certain forms of (or even all) advertising.
THE TECHNICAL NITTY-GRITTY:
Here’s an example of the HTML you would then need to place on your web page, where ‘ABCDEF’ should be replaced with your own API key:
<script src="http://www.stormpulse.com/api/maps/current/?key=ABCDEF" type="text/javascript"></script>
The ‘current’ phrase in the URL means that this will pull back a map showing current tropical cyclone activity in the Atlantic basin. To highlight a particular storm (handy when multiple storms are active), simply change this phrase to a different phrase, such as ‘edouard’ or ‘tropical-storm-edouard-2008′ or even ‘five’ (since Edouard is the fifth Tropical Depression of the year):
<script src="http://www.stormpulse.com/api/maps/tropical-storm-edouard-2008/?key=ABCDEF" type="text/javascript"></script>
<script src="http://www.stormpulse.com/api/maps/five/?key=ABCDEF" type="text/javascript"></script>
<script src="http://www.stormpulse.com/api/maps/tropical-depression-five-2008/?key=ABCDEF" type="text/javascript"></script>
You can even show storms from yesteryear using the same syntax, for example the legendary Hugo:
<script src="http://www.stormpulse.com/api/maps/hurricane-hugo-1989/?key=ABCDEF" type="text/javascript"></script>
Or perhaps you can only remember the name of an infamous storm; often you can get away with just using the name:
<script src="http://www.stormpulse.com/api/maps/gilbert/?key=ABCDEF" type="text/javascript"></script>
Since the beginning of the 2009 season, Stormpulse.com has provided coverage of the Northeast Pacific Basin as well as the Atlantic. The API map defaults to the Atlantic basin, so if you would like to focus on the latest activity in the Pacific, you need to add a reference to Pacific into your URL, like so:
<script src="http://www.stormpulse.com/api/maps/pacific/current/?key=ABCDEF" type="text/javascript"></script>
The same rules that govern choosing Atlantic seasons and storms also applies to the Pacific. For example, to bring up a map of Hurricane Iniki, you would use the following code:
<script src="http://www.stormpulse.com/api/maps/pacific/hurricane-iniki-1992/?key=ABCDEF" type="text/javascript"></script>
And to bring up the entire 2008 Northeast Pacific Basin hurricane season, you would use:
<script src="http://www.stormpulse.com/api/maps/pacific/2008-hurricane-season/?key=ABCDEF" type="text/javascript"></script>
SETTING THE HEIGHT AND WIDTH
You can specify the height and width of the map returned by the JavaScript tag by passing in an extra parameter (or two) to the URL–namely ‘height’ and ‘width’, for example:
<script src="http://www.stormpulse.com/api/maps/current/?key=ABCDEF&height=600&width=720" type="text/javascript"></script>
You can even request a full-screen map (one that consumes the entire browser window) by requesting height=100%, width=100%, for example:
<script src="http://www.stormpulse.com/api/maps/current/?key=ABCDEF&height=100%&width=100%" type="text/javascript"></script>
One of the more advanced settings available to users of the embedded map is the ability to set the wmode parameter on the Flash app. This value controls whether or not HTML elements are visible above or behind the map. The three acceptable values are ‘window’ (default), ‘opaque’, and ‘transparent’. You can see examples of each here. Here’s an example of setting the parameter in the API call:
<script src="http://www.stormpulse.com/api/maps/current/?key=ABCDEF&wmode=opaque" type="text/javascript"></script>
This feature is somewhat “use at your own risk”, as we’ve heard of problems using certain wmodes with certain browsers (see: http://is.gd/kCCd). Please feel free to report what you encounter and let us know if we can do anything differently on our end to help.
FUTURE UPGRADES
The nice thing about this service, in addition to it being free, is that you will automatically benefit from enhancements we plan to roll out to the map in the near future, including the tracking of developing systems (invests/disturbances) in addition to those that have gained tropical depression status.
Thanks for using Stormpulse.
32 comments so far
Leave a reply
[...] Stormpulse API [...]
[...] Click here : http://stormpulse.wordpress.com/stormpulse-api/ [...]
Any chances of getting the City of Richmond, Va added to the map, as we get lots of hurricanes?
[...] Stormpulse API [...]
[...] Stormpulse API [...]
Just added it to ppxchat.com and it looks great. I’ve already gotten feedback from our regulars and they like it a lot.
[...] using the Google Maps API, which seems to be the go-to API for many web mapping efforts. In fact they offer and API of their own, although it’s limited to embedding self-contained [...]
hi great site!!!
i found you on friday evening and loaded & bookmarked your site.
now i can access your site, but no hurricane(s)
or graphics?
did i lose your graphics by the bookmark process
(not being in sync time/date?), the current hour
and next update appear. i have an old win’98 w/
firefox and would appreciate your help (we live in beaufort sc) to help clear up the local boob tube hysterics.
thanx jim
I’ve requested the key for your API, but have not gotten any reply. Is there another way to make the key request?
Thank you for the use of your API.
I’ve (you’ve) already had several compliments. I see the home page hosting your map has already been viewed a couple of hundred times – Windows XP, 2003, 2000, Vista, CE… Linux, Mac OS X, a couple of Danger Sidekick’s and a few BlackBerry’s. And the browsers have been across the board – IE 5, 6, 7; Netscape 7,9; Firefox 2,3 and several others.
And each one of these clients’ page views did not leave the index page for at least 30 seconds! And none of them have failed a simple “JS active?” test I put in place.
This is Excellent Work you all have done, with the StormPulse API.
Thanks, again, and take care.
Kevin Crothers
[...] going back to 1851, soyou can see the paths and intensity of previous hurricanes. There is even an API for embedding Stormpulse maps on other [...]
[...] going back to 1851, soyou can see the paths and intensity of previous hurricanes. There is even an API for embedding Stormpulse maps on [...]
[...] going back to 1851, soyou can see the paths and intensity of previous hurricanes. There is even an API for embedding Stormpulse maps on other sites which I’m looking into for a page here on [...]
[...] going back to 1851, soyou can see the paths and intensity of previous hurricanes. There is even an API for embedding Stormpulse maps on [...]
[...] 情報は米国立ハリケーンセンターその他の場所から収集している。サイトには1851年までの暴風雨関連データが揃っているので、過去のハリケーンの進路・強度も参照できる。Stormpulseの地図を他のサイトにエンベッドできるAPIまであって、至れり尽くせりである。 [...]
[...] Però té un competidor que ofereix una informació excepcional i que no podeu deixar de visitar. Es tracta de Stormpulse que mostra l’estat actual de tot huracà i la seva trajectòria, alhora que fa una previsió de tots els paràmetres importants a tenir en compte. A més, disposa de les dades de tots els huracans des de l’any 1851, pel que es pot veure en detall qualsevol d’aquests fenòmens del passat. A més, fins i tot podem inserir els seus mapes a la nostra web o blog gràcies a que posa a la disposició de tothom la seva API. [...]
[...] Pero tiene un competidor que ofrece una información excepcional y que no podéis dejar de visitar. Se trata de Stormpulse que muestra al estado actual de todo huracán y su trayectoria, a la vez que hace una previsión de todos los parámetros importantes a tener en cuenta. Además, dispone de los datos de todos los huracanes desde el año 1851, por lo que se puede ver en detalle cualquiera de estos fenómenos del pasado. Además, incluso podemos insertar sus mapas en nuestra web o blog gracias a que pone a la disposición de todo el mundo su API. [...]
[...] Stormpulse API allows anyone with webmaster privileges (really, the ability to place a JavaScript tag on a page) [...]
I love your site. Is it possible to use you API and do a mash up with my data on my site?
What if my site is behind a firewall?
Thanks!
[...] a 1851(!). Ou seja, você pode ver as tempestades e furacões de anos anteriores. E ainda há uma API para incorporar o Stormpulse em páginas [...]
[...] que datan de 1851, así que puede ver el camino e intensidad de los huracanes. Hay incluso un API para mapas incorporados de Stormpulse en otros [...]
[...] Stormpulse API [...]
[...] You could while away hours playing with Stormpulse’s interactive storm mapping…and we just did. Be sure to switch it to “Full Screen” mode to get the full effect. What’s more, bloggers can embed Stormpulse maps into their sites using the Stormpulse API. [...]
[...] You could while away hours playing with Stormpulse’s interactive storm mapping…and we just did. Be sure to switch it to “Full Screen” mode to get the full effect. What’s more, bloggers can embed Stormpulse maps into their sites using the Stormpulse API. [...]
Would it be possible to have your JavaScript emit a parameter to the Flash control of ‘wmode=opaque’?
Without that parameter, the Flash control becomes topmost in the window z-order, and menu dropdowns/flyouts appear hidden behind the Flash control.
Thanks in advance,
Ken
Hey Ken, we’re going to add this soon as an optional argument on API calls. Thanks for your patience. Once it’s available, I’ll drop you a line.
I would suggest that, since it looks like you’re using the argument as a search key, that a) you be very careful how you sanitize it, and don’t forget Unicode attacks, and b) you allow (and recommend) 2008-five and 2008-Edouard as your most common form of key. Constraining the search keys will make everyone’s life easier.
Thanks for your suggestion, but I do kind of like the keys the way they are. 2008-Edouard is OK, perhaps. 2008-five is a no go. ;-)
And, definitely, what Ken said: people whose pulldown menus go *behind* their embedded flash make me want to do things for which the Internet is just not a suitable method of transport, like homicide. :-)
This has been fixed! Please look again at the instructions above under WMODE. Thanks!
Thanks again, Matthew for adding the wmode parameter .. it does work fine and with wmode=opaque, lets the popup/dropdown menus fully appear in front of the flash control.
[...] Stormpulse API [...]