Method: wro - locations_by_type
Get all the locations worldwide where planes of the given type can be found. This method will return all current locations where one or more planes of the given type are linked to.
- Entry point:
- wro
- Method name:
- locations_by_type
- Url:
- https://www.spottingmode.com/api/wro/locations_by_type/
create an url with the url creator tool - Daily limit:
- 1.000
- Weekly limit:
- -
- Monthly limit:
- -
- Authentication required:
- Api key
Method parameters
Name | Type | Optional | Description |
---|---|---|---|
main_type_id | integer | The id of the main type for which to retrieve the locations. Obtain the id through the type search or type list methods. | |
num | integer | optional | Total number of records to retrieve, default is 100, maximum is 500. |
start | integer | optional | Start value for pagination, default is 0. Note that counting starts at 0, not 1. |
Method response
Response formats available for this method: json, xml
json
{"locations": [ { "url": "http:\/\/www.spottingmode.com\/wro\/location\/9092\/", "location_name": "Bevekom", "description": "F-16", "lat": "50.75405884", "lng": "4.78332520", "country_name": "Belgium", "state_name": "" },{ "url": "http:\/\/www.spottingmode.com\/wro\/location\/2427\/", "location_name": "Bevekom - 1W Historical Center", "description": "Various", "lat": "50.75570297", "lng": "4.77974129", "country_name": "Belgium", "state_name": "" },{ "pagination": { "start": 0, "num": 100, "totalrows": 109} }] }xml
<root> <locations> <location> <url>http://www.spottingmode.com/wro/location/9092/</url> <location_name>Bevekom</location_name> <description>F-16</description> <lat>50.75405884</lat> <lng>4.78332520</lng> <country_name>Belgium</country_name> <state_name></state_name> </location> <location> <url>http://www.spottingmode.com/wro/location/2427/</url> <location_name>Bevekom - 1W Historical Center</location_name> <description>Various</description> <lat>50.75570297</lat> <lng>4.77974129</lng> <country_name>Belgium</country_name> <state_name></state_name> </location> <pagination> <start>0</start> <num>100</num> <totalrows>109</totalrows> </pagination> </locations> </root>