简体   繁体   中英

retrieving and comparing xml data

In the following code, i am submitting 'suburb' value through HTML form then this value match with the suburb of 'address' element of xml file. which i have done and it showing all addresses of that suburb on google map but i need to display just two addresses of that suburb that offer less rent.

The steps you need to take in order to get the two cheapest rental properties are:

  1. Get all properties within the your specified location into an array.
  2. Sort the array based on price of the rent.
  3. Take the first two items of the array.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM