Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a text search option? [Support Quest Or Feature Request] #79

Open
LWFlouisa opened this issue Jan 2, 2020 · 4 comments
Open

Comments

@LWFlouisa
Copy link

I'm currently implementing this is a system call in PSIFER, as one of the options the AI can do. Is there a way to get it to go to a specific location at startup, or would I specifically need to do a text search in mapscii?

If text search, which command do I do this?

@jaller94
Copy link
Collaborator

jaller94 commented Jan 2, 2020

There is no search but you can set the X and Y coordinates when copying the code:

mapscii/src/Mapscii.js

Lines 38 to 41 in 3b85c6d

this.center = {
lat: 52.51298,
lon: 13.42012,
};

For a similar feature request, have a look at #27.

For a feature request to make Mapscii a library for other CLI applications to implement it, have a look at #66 and #78.

@rastapasta
Copy link
Owner

rastapasta commented Jan 2, 2020

@LWFlouisa

Setting the position of the map is one of the API functions already implemented and in use in the telnet server (which sets the location after doing a GeoIP lookup).

Example usage:

const mapscii = new Mapscii();
mapscii.setCenter(lat, lon);
mapscii.init();

@LWFlouisa
Copy link
Author

Ah I was thinking more a way to open to a specific location in terminal, for example:

mapscii -la 35.236 -lo -85.191

I had similar issues with ChatScript, where I can't seem to open a specifc chatbot automatically in linux terminal.

@missinglink
Copy link

Heya, I'm from the core team of https://github.com/pelias/pelias, let us know if you'd like an API key for implementing some geocoder functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants