Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

ios8 sqlite distance function

$
0
0

A while ago we built an ios app. We somehow used a distance sqlite function to run queries like:

SELECT 
   title, 
   place_id, 
   address, 
   longitude, 
   latitude, 
   distance(latitude, longitude,"'+latitude+'","'+longitude+'") AS currentDistanceFrom 
FROM 
   table 
WHERE 
   currentDistanceFrom < '+distance+' 
ORDER BY 
    currentDistanceFrom 
ASC LIMIT 25;
The problem is we have lost both the .h and .m files plus the knowledge of how to implement them for the app.

https://developer.appcelerator.com/question/125649/defining-a-custom-sqlite-function

This post points to a github repo:
https://github.com/appcelerator/titanium_mobile/tree/master/iphone/Classes/PlausibleDatabase

I have attempted to drop in the PLSqliteDatabase.h &PlausibleDatabase.m into Users ? me ? Library ? Application Support ? Titanium ? mobilesdk ? osx ? 3.4.1.GA ? iphone ? Classes

But the rebuild failed from titaium.

Does anyone know how to implement the use of the sqlite distance function?

All we need to do is rebuild the app for ios8 :)


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>