# Default stop\_finder query returns empty locations array

**URL:** <https://opendataforum.transport.nsw.gov.au/t/default-stop-finder-query-returns-empty-locations-array/1452>\
**Category:** Uncategorized\
**Created:** [November 15, 2018, 10:51pm UTC](https://opendataforum.transport.nsw.gov.au/t/default-stop-finder-query-returns-empty-locations-array/1452 "2018-11-15T22:51:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmgcode](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@cmgcode](https://opendataforum.transport.nsw.gov.au/u/cmgcode)\
**Post date:** [November 15, 2018, 10:51pm UTC](https://opendataforum.transport.nsw.gov.au/t/default-stop-finder-query-returns-empty-locations-array/1452/1 "2018-11-15T22:51:54Z")

</div>

Hi,

I am trying to use the stop\_finder endpoint with the default query params but am receiving an empty array for locations.

I have tried different values for the name\_sf but it yields the same result.

Other endpoints seem to be working as expected.

Here is the query:  
[https://api.transport.nsw.gov.au/v1/tp/stop\_finder?outputFormat=rapidJSON&amp;name\_sf=Circular%20Quay&amp;coordOutputFormat=EPSG%3A4326&amp;TfNSWSF=true&amp;version=10.2.1.42](https://api.transport.nsw.gov.au/v1/tp/stop_finder?outputFormat=rapidJSON&amp;name_sf=Circular%20Quay&amp;coordOutputFormat=EPSG%3A4326&amp;TfNSWSF=true&amp;version=10.2.1.42)  
Authorization: apikey xxxx

And here is the response:  
GET [https://api.transport.nsw.gov.au/v1/tp/stop\_finder?outputFormat=rapidJSON&name\_sf=Circular+Quay&coordOutputFormat=EPSG%3A4326&TfNSWSF=true&version=10.2.1.42](https://api.transport.nsw.gov.au/v1/tp/stop_finder?outputFormat=rapidJSON&name_sf=Circular+Quay&coordOutputFormat=EPSG%3A4326&TfNSWSF=true&version=10.2.1.42)

HTTP/1.1 200 OK  
Date: Thu, 15 Nov 2018 22:51:28 GMT  
Content-Type: application/json  
Connection: keep-alive  
Set-Cookie: AWSALB=H0HAFHlLvYM4apyTqk2hqa7ysnfgUE44EOvPC6SxAY+eXxGXPZm9K5vl3f4nDKs/vRO3UMTRGEl4rsUId4kJGHxZBcrnsZx1E13dXubkYWUwPqGo9QE0l5JRZmvD; Expires=Thu, 22 Nov 2018 22:51:28 GMT; Path=/  
Server: Apache-Coyote/1.1  
Accept: application/json  
Accept-Ranges: none  
X-Frame-Options: SAMEORIGIN  
X-Cache: Miss from cloudfront  
Via: 1.1 [eda9fe2763cea4a982a09ceb352512a6.cloudfront.net](http://eda9fe2763cea4a982a09ceb352512a6.cloudfront.net) (CloudFront)  
X-Amz-Cf-Id: jvRZRRYLKTij-ffzJyUPQ8nA34Nr9IPC2N7gA5PD2O\_i0ly9-LhPLQ==

{  
“version”: “10.2.1.42”,  
“locations”:   
}

Response code: 200 (OK); Time: 275ms; Content length: 38 bytes

Any ideas?

---

<div class="post-metadata">

**Author:** ![alejandro.felman](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@alejandro.felman](https://opendataforum.transport.nsw.gov.au/u/alejandro.felman)\
**Post date:** [November 15, 2018, 11:05pm UTC](https://opendataforum.transport.nsw.gov.au/t/default-stop-finder-query-returns-empty-locations-array/1452/2 "2018-11-15T23:05:34Z")

</div>

Hi @cmgcode, I’m getting a response when setting the type\_sf parameter to ‘any’.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/nsw/original/1X/c195f8b8bb51670ffeb119beacc635c828ffb85b.png)

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![cmgcode](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@cmgcode](https://opendataforum.transport.nsw.gov.au/u/cmgcode)\
**Post date:** [November 15, 2018, 11:08pm UTC](https://opendataforum.transport.nsw.gov.au/t/default-stop-finder-query-returns-empty-locations-array/1452/3 "2018-11-15T23:08:40Z")

</div>

That was it!

The default value is empty when running the query through the API explorer.

Thanks for that!
