metaweather.location.search
Description
Gives a list of locations that approximatly match a search string.
Arguments
| Name | Required? | Default Value | Description |
|---|---|---|---|
| query | Yes | String to search for locations on. |
Response
Live Example
Key used is not shown in example request. You can get your own to make requests here. Some information is withheld in these public examples, to protect the innocent.
http://www.metaweather.com/api/rest/?method=metaweather.location.search&query=london
<?xml version="1.0" encoding="utf-16"?>
<response status="ok">
<info>
<method>metaweather.location.search</method>
<server type="web">bruce</server>
<server type="db">terry</server>
<timeTaken>0</timeTaken>
<generatedTime>07/09/2010 00:25:50</generatedTime>
</info>
<data>
<location>
<id>3</id>
<name>London</name>
<parent>2</parent>
</location>
</data>
</response>
Schema
Coming soon!
