metaweather.location.search

Description

Gives a list of locations that approximatly match a search string.

Arguments

NameRequired?Default ValueDescription
queryYesString 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>10/09/2010 17:38:18</generatedTime>
  </info>
  <data>
    <location>
      <id>3</id>
      <name>London</name>
      <parent>2</parent>
    </location>
  </data>
</response>

Schema

Coming soon!