mohamedmansour / hackathon-letsgo.io

letsgo.io - Photo Hack Day 4 project
http://letsgo.io
5 stars 6 forks source link

caching strategy for /api/locationsearch #8

Closed jeremybenaim closed 11 years ago

jeremybenaim commented 11 years ago

we need a caching strategy for this endpoint – or get rid of them if the Bing Maps API can directly return the coordinates (à la geocoder API from GMaps)

jeremybenaim commented 11 years ago

because less XHR -> moar awesomeness

mohamedmansour commented 11 years ago

The Bing Maps API does return the geocoded results, but the issue here isn't the Maps SDK it is the Flickr SDK cause it only accepts lat/longs. We should cache the coordinates on the server and it will be indeed faster.

jeremybenaim commented 11 years ago

Come on! ;) http://msdn.microsoft.com/en-us/library/hh868060.aspx

mohamedmansour commented 11 years ago

dope! Oops, we should definitely do this :p

jeremybenaim commented 11 years ago

fixed in af5f862d8cbf0f05bfbef917e8898d541f8c886c