autofleet / locomotion Goto Github PK
View Code? Open in Web Editor NEWAn open-source rider/passenger mobile app written in React Native and Node.js that can be customized and modified to support any ride-hailing
License: MIT License
An open-source rider/passenger mobile app written in React Native and Node.js that can be customized and modified to support any ride-hailing
License: MIT License
Hi,
I'm trying to run locomotion on iOS, but I got the following error message.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FIRApp", referenced from:
in AppDelegate.o
"_OBJC_CLASS_$_RCTBridge", referenced from:
in AppDelegate.o
"_OBJC_CLASS_$_RCTBundleURLProvider", referenced from:
in AppDelegate.o
"_RCTAppSetupDefaultRootView", referenced from:
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
"_RCTAppSetupPrepareApp", referenced from:
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
On Android, I was bale to run it without problems, but still struggling with iOS version. Any ideas on how to fix it?
Macbook Air M2, 2022
React Native version : 0.68.5
Node version : v14.21.3
Xcode version : 15.4 (15F31d)
Destination: iPhone 15
SDK Simulator: iOS 17.5
Context:
In some cases Locomotion based apps need the ability to manage payments and charging transactions automatically.
As there is significant variability in how charging and billing flows are implemented, the approach is to define a specification that Locomotion app developers would be able to implement against.
This specification is called: External Billing Server API (EBS) and will be provided through a pull request on the public repo.
A secret will be defined in both Locomotion and EBS, each request will contain a header - Authorization (JWT bearer token) that will include a secret containing the user id.
{
"userId": "UUID"
}
Body:
{
"id": "UUID",
"firstName": "STRING",
"lastName": "STRING",
"email": "STRING",
"phoneNumber": "STRING",
"createdAt": "STRING",
}
Response:
{
"status": "OK",
}
Response:
{
"balance": 100,
"currency": "USD",
"currencySymbol": "$",
"bookingLimitation": "none",
"charingType": "per-ride",
}
bookingLimitation can be of
charingType can be of
This method can be called more then one time.
Body:
TBD
Response:
{
"status": "ok",
}
This url should return an HTML to be showed to the user in app after clinking "Billing" from the main menu.
This method can be called more then one time, every call will replace the last data saved.
Body:
{
"status": "done",
"priceCharged": 20,
"currency": "USD",
"currencySymbol": "$",
"documents": [
{
"name": "Receipt",
"url": "https://ebs.com/documents/uuid/?token"
}
]
}
Response:
{
"status": "ok",
}
I get an error with status code 500 when fetching the /estimations API
My cURL
curl --location 'https://api.autofleet.io/api/v1/estimations' \
--header 'accept: application/json' \
--header 'authorization: Bearer {{authToken}}' \
--header 'content-type: application/json' \
--data '
{
"queries": [
{
"rideType": "passenger"
}
],
"includePrice": true,
"includeETA": true,
"stopPoints": [
{
"type": "pickup",
"lat": 43.642566,
"lng": -79.387057
},
{
"type": "dropoff",
"lat": 45.507452,
"lng": -73.587749
}
],
"demandSourceId": "{{demandSourceId}}",
"businessModelId": "{{businessModelId}}"
}
Any ideas on how to fix it?
curl --request GET \
--url 'https://api.autofleet.io/api/v1/availability?lat=43.642566&lng=-79.387057&radius=15000' \
--header 'accept: application/json' \
--header 'authorization: Bearer {{authToken}}'
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.