Note that the API paths has been changed to be a bit more RESTfull.Valid appId is mandatory. You can use the appId from examples for testing (when we go to production we will provision new appId).To receive json pass application/json in the header (by default response is xml). You can do it in curl like this:

curl -i -H "Accept: application/json" "http://d.2ya.it/dre/api/rest/search/parking?appId={AppID}&latitude=43.653226&longitude=-79.383184&userid=1234&countryCode=CA&deviceType=iphone&page=1"

Paging & Number of results

For all of the following APIs, you can add parameters

page={Positive integer}

(default is 1, The starting page for the search result.)

pageSize={Positive integer}

(default is 10, The desired number of each call)

Search parking nearby:

Search for Toronto:

http://d.2ya.it/dre/api/rest/search/parking?appId={AppID}&latitude=43.653226&longitude=-79.383184&userid=myuserid&countryCode=CA&deviceType=iphone&page=1&units=km

<poynt>
  <getParkingResponse>
  <more>true</more>
  <parking>
         <num>1</num>
         <id>pd_244928</id>
         <name>Bell Trinity Square</name>
         <street>483 Bay Street</street>
         <postal>M5G 2E1</postal>
         <country>Canada</country>
         <countryCode>CA</countryCode>
         <isClickThru>true</isClickThru>
         <phoneNumbers>
                <phone>8779096199</phone>
         </phoneNumbers>
         <latitude>43.654258728027344</latitude>
         <longitude>-79.3829116821289</longitude>
         <distance>0.12</distance>
         <direction azimuth="14.77195870483419">N</direction>
         <website>
                <tag>Website</tag>
                <url>http://en.parkopedia.ca/parking/underground/bell_trinity_square/m5g/toronto/</url>
         </website>
         <photos>
                <photo>http://static.parkopedia.ca/static/parking_space_photos/cef6bf98009b82a36b24a566ec587a60.jpg</photo>
         </photos>
         <type>carpark</type>
         <spaces>661</spaces>
         <maxheight>7' 8" (2.33m)</maxheight>
         <price>C$ 3.50 / 30 mins</price>
         <hoursPrices>
                <hoursPrices>Mon-Sun 24 hours</hoursPrices>
                <hoursPrices>C$ 3.50 / 30 mins</hoursPrices>
                <hoursPrices>C$ 17.00 / daytime</hoursPrices>
                <hoursPrices>Mon-Fri in after 8am out by 7pm</hoursPrices>
                <hoursPrices>C$ 13.00 / early bird</hoursPrices>
                <hoursPrices>Mon-Fri in by 8am out by 7pm</hoursPrices>
                <hoursPrices>C$ 6.00 / flat rate</hoursPrices>
                <hoursPrices>Sat-Sun in after 6am out by 6am</hoursPrices>
                <hoursPrices>C$ 6.00 / overnight</hoursPrices>
                <hoursPrices>Mon-Fri in after 6pm out by 6am</hoursPrices>
                <hoursPrices>C$225.00 / month</hoursPrices>
                <hoursPrices>C$ 6.00 / holiday</hoursPrices>
         </hoursPrices>
         <features>
                <feature>Disabled Spaces</feature>
                <feature>Motorcycle Spaces</feature>
                <feature>Secure</feature>
                <feature>Overnight</feature>
                <feature>Elevator</feature>
                <feature>Bike Racks</feature>
                <feature>Lit</feature>
         </features>
         <payments>
                <payment>Coins</payment>
                <payment>Notes</payment>
                <payment>Cards</payment>
         </payments>
         <partners>
                <partner>parkodedia</partner>
         </partners>
         <icons>
                <listingIcons>
                       <listingIcon>parkodedia_listicon</listingIcon>
                </listingIcons>
                <profileIcons>
                       <profileIcon>parkodedia_profileicon</profileIcon>
                </profileIcons>
          </icons>
</parking>
..

Get parking by Id:

 

Get parking by Id:

Additional parameter criteria={id}

 

(For example, criteria=pd_244928)

http://d.2ya.it/dre/api/rest/search/parking?criteria=pd_244928&appId={AppID}&latitude=43.653226&longitude=-79.383184&userid=1234&countryCode=CA&deviceType=iphone&units=km

<poynt>
  <getParkingResponse>
  <more>true</more>
  <parking>
         <num>1</num>
         <id>pd_244928</id>
         <name>Bell Trinity Square</name>
         <street>483 Bay Street</street>
         <postal>M5G 2E1</postal>
         <country>Canada</country>
         <countryCode>CA</countryCode>
         <isClickThru>true</isClickThru>
         <phoneNumbers>
                <phone>8779096199</phone>
         </phoneNumbers>
         <latitude>43.654258728027344</latitude>
         <longitude>-79.3829116821289</longitude>
         <distance>0.12</distance>
         <direction azimuth="14.77195870483419">N</direction>
         <website>
                <tag>Website</tag>
                <url>http://en.parkopedia.ca/parking/underground/bell_trinity_square/m5g/toronto/</url>
         </website>
         <photos>
                <photo>http://static.parkopedia.ca/static/parking_space_photos/cef6bf98009b82a36b24a566ec587a60.jpg</photo>
         </photos>
         <type>carpark</type>
         <spaces>661</spaces>
         <maxheight>7' 8" (2.33m)</maxheight>
         <price>C$ 3.50 / 30 mins</price>
         <hoursPrices>
                <hoursPrices>Mon-Sun 24 hours</hoursPrices>
                <hoursPrices>C$ 3.50 / 30 mins</hoursPrices>
                <hoursPrices>C$ 17.00 / daytime</hoursPrices>
                <hoursPrices>Mon-Fri in after 8am out by 7pm</hoursPrices>
                <hoursPrices>C$ 13.00 / early bird</hoursPrices>
                <hoursPrices>Mon-Fri in by 8am out by 7pm</hoursPrices>
                <hoursPrices>C$ 6.00 / flat rate</hoursPrices>
                <hoursPrices>Sat-Sun in after 6am out by 6am</hoursPrices>
                <hoursPrices>C$ 6.00 / overnight</hoursPrices>
                <hoursPrices>Mon-Fri in after 6pm out by 6am</hoursPrices>
                <hoursPrices>C$225.00 / month</hoursPrices>
                <hoursPrices>C$ 6.00 / holiday</hoursPrices>
         </hoursPrices>
         <features>
                <feature>Disabled Spaces</feature>
                <feature>Motorcycle Spaces</feature>
                <feature>Secure</feature>
                <feature>Overnight</feature>
                <feature>Elevator</feature>
                <feature>Bike Racks</feature>
                <feature>Lit</feature>
         </features>
         <payments>
                <payment>Coins</payment>
                <payment>Notes</payment>
                <payment>Cards</payment>
         </payments>
         <partners>
                <partner>parkodedia</partner>
         </partners>
         <icons>
                <listingIcons>
                       <listingIcon>parkodedia_listicon</listingIcon>
                </listingIcons>
                <profileIcons>
                       <profileIcon>parkodedia_profileicon</profileIcon>
                </profileIcons>
          </icons>
</parking>
..