ordo-s / jeskaibeta Goto Github PK
View Code? Open in Web Editor NEWCMPE 137 Group 1 Project
CMPE 137 Group 1 Project
in the event.swift model the maps locations are not working. The issues is that to call the map kit it has a asynchronous call to get location so the return value is being returned before the value is retrieved.
For example
I need to add a completion handler to this code to wait for the location before returning, but I'm not to sure how to do that and have been trying for some time now.
func calculateLat() -> CLLocationDegrees{
var lat: CLLocationDegrees?
let geocoder = CLGeocoder()
geocoder.geocodeAddressString(address) {
placemarks, error in
let placemark = placemarks?.first
lat = (placemark?.location?.coordinate.latitude)!
// need to wait for location to be received
}
return lat!
}
Its pushed to the most current version of dev, will be working on this more tomorrow
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.