Get north on apple watch (compass) - watchkit

Is it possible to get the north on the new Apple Watch Series 2. I want to build a compass application. Can you help me?
Thanks!

Related

Open Street Maps (OSM) Adding and Updating Map Data in Android Apps

I am trying to create an Android App
for our field sales men to be able to Add and Updating Map Data using Android Apps to
Open Street Maps (OSM)
Can you kindly point me to the appropriate OSM Android Classes to be able to do the same
Thanks a lot in Advance
I am trying randomly with the OSM classes
I am relatively new and not able to figure it out from the online documentation

Unreachable Cities According to the Isoline API

I'm currently using the isoline api to create a coverage area around Seattle,WA based on time traveled.
https://isoline.route.api.here.com/routing/7.2/calculateisoline.json?app_id=<APP_ID>&app_code=<APP_CODE>&mode=fastest;car;traffic:disabled&rangetype=time&start=geo!47.6062,-122.3221&range=32400
However, I've noticed a few sections of map in Washington state that are never covered, even when the time distance is set to the max of 9 hours.
All of these places are reachable by car/bike/walking and Ocean Shores takes me less than 3 hours to drive to - and with 9 hours of driving I could easily make it into California or Montana.
So is this a Here-API bug/limitation or is there something wrong with the way that I am making the call?
Thank you and any help and all help is always appreciated

HEREMaps error 5 when calculating long routes on iOS

UPDATE: This occurs only when using the simulator in Xcode. For this reason this question can be considered resolved. I'm not going to delete it though in case someone else experiences the same issue.
When I try to calculate routes for long distances (for example from Vancouver BC to New York NY I get an error back, error 5.
Error 5 is defined in the API as:
NMARoutingErrorInvalidOperation
There was an error due to another request already being processed.
This is however the same call that is made for other calculations without issue, this only happens for long distances.
Do you have any insight into what could be causing this? I have tried using both fastest and balanced for the routing type. I am using
router.calculateRoute(withStops: [startWaypoint, destinationWaypoint], routingMode: routingMode)
Going South I can calculate a route from Vancouver to Seattle (195Km) but not Aberdeen (250Km). Going East I can calculate to Skagit Provincial Park (150Km) but not to Manning Park (190 Km)
(iOS Premium License)
This occurs only when using the simulator in Xcode. For this reason this question can be considered resolved. I'm not going to delete it though in case someone else experiences the same issue.

jVectorMap - How to get County maps for US states?

I am creating a control to be used in a DNN site that will display the US map using jVectoMap.
When I click Colorado I need the state map to appear with the counties defined.
Eventually I would like to have all of the US states but Colorado is critical right now.
I have tried running different Shape files through the converter as documented on the website but so far I haven't been able to get the counties. I have also contacted the developer three days ago now but have yet to hear back.
Unfortunately I am on a deadline for this and don't have anymore time to waste trying and failing.
Does anybody have a Colorado map with the county lines that is copyright free to use? Or is somebody willing to make one($-PM me)?
Any help is appreciated, thanks.
BTW if there is another library out there that has the US and state county maps available, I'm not married to jVectorMap.
I fixed this problem for all states by downloading the full project for jvectormap - http://jvectormap.com/download/
and under /tests/assets/us the author includes all the js files needed. Just copy them over to your project and use:
new jvm.MultiMap({
container: $('.jvectormap-container'),
maxLevel: 1,
main: {
map: 'us_lcc_en'
},
mapUrlByCode: function(code, multiMap){
return '../js/counties/jquery-jvectormap-data-'+
code.toLowerCase()+'-'+
multiMap.defaultProjection+'-en.js';
}
});
and it will load each of the county maps on demand
How I solved this:
First use this site to find a .svg of the map you need:
http://commons.wikimedia.org/wiki/File:Blank_map_of_Colorado.svg
Majority of these maps are free to use however you see fit. Just read the terms to be sure.
Then open the .svg with notepad/notepad++ etc. and paste everything to this site:
http://svgto.jvectormap.com/
After you paste, hit 'Convert to map' and on the next page you will be able to create the Names (which show up on the hover labels for jVectorMap) and the IDs.
Hope this helps

What is the "creator code" for Final Cut Pro X?

I'm working on sending Apple Events to Final Cut Pro X. At the moment I have the trial (free is always nice for experimenting). However, looking at the .plist in the package, the creator code is specified as "????" and its bundle ID is "com.apple.FinalCutTrial". I found the creator code for FCP 7 is "KeyG" but nothing regarding FCPX specifically.
For the events themselves, I'm also looking for what events it supports. The "MovieAssembler" sample from Apple is dated 11-2007 and lists Final Cut Pro 5.x. I've thrown some events at FCPX trial, but I get back an event with key 'errn' and a long whose lower word translates to -1708, "error apple event not handled" (seems more than coincidental). They also have an FxPlug architecture, but that's aimed at video.
Which leaves me with a couple questions:
What is the creator code for Final Cut Pro X? Seeing that it isn't backwards-compatible with the project files, I suspect there's a chance the code changed.
Can anyone point me to examples/documentation about the Apple Events that FCP X supports?
I have an Apple Developer account, so can get to resources on their site (if I know where it is!)
Thanks!!
In case anyone else comes looking...
Turns out that Final Cut Pro X has no creator code. Just like the trial, its CFBundleSignature (OS Type Code) is '????'. Its Bundle ID is "com.apple.FinalCut" (slightly different from the trial).
FCP X does not support Apple Events anymore. It appears to respond to the generic "open file" event, though I expect that's because Cocoa/AppKit routes the request through the app delegate -application:openFile: method.

Resources