开发者

retrieving and comparing xml data

开发者 https://www.devze.com 2023-03-07 21:59 出处:网络
In the following code, i am submitting \'suburb\' value through HTML form then this value 开发者_JS百科match with the suburb of \'address\' element of xml file. which i have done and it showing all a

In the following code, i am submitting 'suburb' value through HTML form then this value 开发者_JS百科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.
0

精彩评论

暂无评论...
验证码 换一张
取 消