Request 8
Return Atm Search By Coordinates
Find ATMs near a map point
https://api.ficanex.ca/service/json/ReturnAtmSearchByCoordinatesRetrieves information. No data is changed.Description
Returns the ATMs within a set distance of a map location, given as a latitude and longitude, nearest first.
Use Case
Use this request for location-based searches in a mobile app, such as a Near me button. Pass the latitude and longitude reported by the member's device.
The Request
ReturnAtmSearchByCoordinateshttps://api.ficanex.ca/service/json/ReturnAtmSearchByCoordinates?strAtmServiceKey=YOUR_KEY&dblLatitude=48.45886&dblLongitude=-123.379264&bytRadius=5
The Response
ATMs Found
These ATMs are within the requested distance of the location.
{ "count": 1, "coordinates": { "latitude": 48.45886, "longitude": -123.379264 }, "locations": [ { "index": 0, "id": 963, "atmIdentifier": "CCSC3102", "institution": { "id": 58, "name": "Coast Capital Savings Federal Credit Union", "url": "", "isAtlanticCreditUnion": 0 }, "coordinates": { "latitude": 48.4542, "longitude": -123.395 }, "address": { "streetAddress": "3170 Tillicum Rd, Unit 169", "city": "Victoria", "province": "BC", "postalCode": "V9A7C9", "landmark": "Tillicum Centre Mall" }, "features": { "deposits": 1, "hours": 2, "driveThru": 0, "pinChange": 1, "voiceGuidance": 1 }, "creditCards": { "visa": 1, "plus": 1, "mastercard": 1, "cirrus": 1 }, "languages": ["en", "fr", "zh", "pa"] } ]}The Request
The parameters sent with the request. Parameters marked Required must be included. The Example tab shows the complete request.
Parameters
Each parameter is added to the end of the request address.
strAtmServiceKeystringRequiredThe Web Service Key assigned to your Financial Institution. Required for every request.
Example YOUR_KEY
dblLatitudenumberRequiredThe latitude of the location, as a decimal number (for example, 49.3236).
Example 48.45886
dblLongitudenumberRequiredThe longitude of the location, as a decimal number (for example, -123.072).
Example -123.379264
bytRadiusnumberRequiredThe search distance, in kilometres, measured from the location. Use 0 to search with no distance limit.
Example 5
bShowDuplicateAddressesnumberOptionalSet to 1 to include ATMs that share the same street address, postal code and city. If left out, only one ATM per address is returned.
0one ATM per address1include ATMs that share an addressThe Response
The information returned by the request. The Example tab shows each response in full.
Successful Response Fields
countnumberThe number of ATMs in the response. 0 means no ATMs were found.
Example 1
coordinatesobjectThe location the search distance was measured from.
Example { "latitude": 49.3380932, "longitude": -123.0692896 }
ATM Record Fields
Every ATM includes these fields. These are the JSON field names; JSON or XML? shows how XML writes them.
indexnumberThe ATM's position in the response, starting at 0.
Example 0
institution.idnumberThe ID of the Financial Institution the ATM belongs to.
Example 303
institution.namestringThe Financial Institution's name. Can be empty.
Example Vancity Credit Union
institution.urlstringThe Financial Institution's website address. Currently always empty.
Example ""
institution.isAtlanticCreditUnionnumber1 if the Financial Institution is an Atlantic credit union, otherwise 0.
0No1Yescoordinates.latitudenumberThe ATM's latitude. Use it to place the ATM on a map.
Example 49.3236
coordinates.longitudenumberThe ATM's longitude. Use it with the latitude to place the ATM on a map.
Example -123.072
address.streetAddressstringThe ATM's street address.
Example 1620 Lonsdale Avenue
address.citystringThe ATM's city.
Example North Vancouver
address.provincestringThe ATM's province.
Example BC
address.postalCodestringThe ATM's postal code, without a space.
Example V7M2J3
address.landmarkstringA landmark to help find the ATM. If the ATM has none, the Financial Institution's default landmark text is used instead. Can be empty.
Example Lonsdale & 17th Street
features.depositsnumber1 if the ATM accepts deposits, otherwise 0.
0No1Yesfeatures.hoursnumberThe ATM's opening hours, as a code.
1Business Hours Only224 Hours a Day3Restricted Access Building4Custom, see customHoursFrom and customHoursTofeatures.customHoursFromstringThe opening time. Included only when hours is 4; otherwise this field is not included.
Example 09:00 AM
features.customHoursTostringThe closing time. Included only when hours is 4; otherwise this field is not included.
Example 05:00 PM
features.driveThrunumber1 if the ATM is a drive-thru, otherwise 0.
0No1Yesfeatures.pinChangenumber1 if members can change their PIN at the ATM, otherwise 0.
0No1Yesfeatures.voiceGuidancenumber1 if the ATM offers voice guidance, otherwise 0.
0No1YescreditCards.visanumber1 if the ATM accepts Visa.
0No1YescreditCards.mastercardnumber1 if the ATM accepts Mastercard.
0No1YescreditCards.plusnumber1 if the ATM accepts Plus.
0No1YescreditCards.cirrusnumber1 if the ATM accepts Cirrus.
0No1YeslanguagesarrayThe languages the ATM offers, as two-letter codes.
enEnglishfrFrenchzhChineseitItaliankoKoreanplPolishpaPunjabiesSpanishdeGermanptPortugueseruRussianjaJapanesearArabicviVietnamesetlTagalogPossible Responses
Each response includes a Status CodeA standard code returned with every response to indicate the result of your request:200: Indicates success.400 & 404: Indicate a problem with the request format or a missing resource.500 & 502: Indicate an issue occurred on THE EXCHANGE server.. These match the tabs in The Response panel.
200ATMs FoundThese ATMs are within the requested distance of the location.
400Missing dblLatitude or dblLongitudeThe request did not include dblLatitude or dblLongitude.
What to do: Add dblLatitude or dblLongitude to the request address.
400Missing Web Service KeyThe request did not include strAtmServiceKey.
What to do: Add strAtmServiceKey to the request address.
400Invalid Web Service KeyA key was sent, but it does not match any Financial Institution.
What to do: Check the key for typing errors. Your current key is in the Overview section of your Financial Institution's page on the FI Portal.