Follow

API Method: GetReportsByLatLng()

This method will return series of report objects for a given lat/lng (WGS84 Coordinate System - Google/Bing Compliant).

Request

Method: POST
Body Parameters:

Output = Xml | Json (Defaults to Xml)
Callback (Optional)
Xml = 
<?xml version="1.0" encoding="utf-8" ?>
<CsRequest>
   <ApiAuthKey>{INSERT YOUR AUTH KEY HERE!}</ApiAuthKey>
   <ApiRequestType>GetReportsByLatLng</ApiRequestType>
   <ApiRequestVersion>1</ApiRequestVersion>
   <Latitude>34.0632809</Latitude>
   <Longitude>-118.445211</Longitude>
   <Radius>5</Radius>
   <MaxResults></MaxResults>
   <IncludeDetails>False</IncludeDetails>
   <DateRangeStart></DateRangeStart>
   <DateRangeEnd></DateRangeEnd>
   <CurrentStatus></CurrentStatus>
</CsRequest>

 Xml Node Name  Required? Data Type Default
ApiAuthKey Yes String  
ApiRequestType Yes String  
ApiRequestVersion Yes String  
Latitude Yes Decimal (WGS84 Compliant)  
Longitude Yes Decimal (WGS84 Compliant)  
Radius No Decimal 5.0
MaxResults No Int32 250
IncludeDetails No Boolean False
DateRangeStart No DateTime  
DateRangeEnd No DateTime  
CurrentStatus No StatusType  

Response

<?xml version="1.0" encoding="utf-16"?>
<CsResponse>
   <Message>Congratulations! The reports you requested are below.</Message>
   <Reports>
      <ReportCount>150</ReportCount>
      <Report>
         <Id>6246</Id>
         <DateCreated>2/2/2011 7:08:45 PM</DateCreated>
         <DateUpdated>2/2/2011 7:16:34 PM</DateUpdated>
         <RequestType>Graffiti</RequestType>
         <ImageUrl>http://www.citysourced.com/image.png</ImageUrl>
         <ImageUrlXl>http://www.citysourced.com/image_xl.png</ImageUrlXl>
         <ImageUrlLg>http://www.citysourced.com/image_lg.png</ImageUrlLg>
         <ImageUrlMd>http://www.citysourced.com/image_md.png</ImageUrlMd>
         <ImageUrlSm>http://www.citysourced.com/image_sm.png</ImageUrlSm>
         <ImageUrlXs>http://www.citysourced.com/image_xs.png</ImageUrlXs>
         <City>Los Angeles</City>
         <State>CA</State>
         <ZipCode>90024</ZipCode>
         <Latitude>34.063290106892300</Latitude>
         <Longitude>-118.445148468018000</Longitude>
         <UrlDetail>http://www.citysourced.com/report/6246/graffiti</UrlDetail>
         <UrlShortened />
         <StatusType>Closed</StatusType>
      </Report>
   </Reports>
   <ResponseTime>0.4370822 Seconds</ResponseTime>
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk