maps

Maps API, storing data, how to without violating terms? [closed]

落爺英雄遲暮 提交于 2019-12-04 06:00:35
In Google and Yahoo Maps API, I read in th terms of service: YOU SHALL NOT: "store or allow end users to store map imagery, map data or geocoded location information from the Yahoo! Maps APIs for any future use;" My problem and scope of my project is to build a real estate website. The user who posts an ad for selling his/her house will be able to write the house's address, or point it directly into a map. Then I would save that latitude/longitude data to a mysql database so I can retrieve it later when a new user will be looking for a house for sale. Is this the correct procedure? How does

how do I map (on a geographical map) data in R just given the US Zipcodes

天大地大妈咪最大 提交于 2019-12-04 05:48:01
问题 for a school project I have to map some data on a geographical map in R. Therefore I've got some data containing the zipcode and many other information (just no more information on the state, county or whatever). I've been trying to point out on a map of the usa first all the zips I have. Just dots. Afterwards I wanted to mix and match the criteria like the count of zips I have in the data (e.g. the zips that appear very often I wanted to colour dark and the less often ones in a lither colour

jQuery: performing some action before form is submitted

二次信任 提交于 2019-12-04 04:28:39
问题 I have a page with a single form on it. The form contains a text box and a submit button. When the form is submitted, either by clicking the button, or by pressing enter in the textbox, I want to do a lookup (in this case, geocoding a postcode using Bing Maps), and then submit the form to the server, as usual. My current approach is to add a handler for the submit event to the one-and-only form, and then call submit() when I've finished, but I can't get this to work, and haven't been able to

get coordinates by clicking on map (openstreetmaps)

时光怂恿深爱的人放手 提交于 2019-12-04 04:08:09
How can we get the coordinates of a point by clicking on it in open street maps? tried: public void onClick(View v) { Projection proj = mapView.getProjection(); IGeoPoint p = proj.fromPixels(v.getX(), v.getY()); System.out.println("x: "+ v.getX() + " y: "+ v.getY()); } cheers, Thanasio Sandeep Use dispatchTouchEvent() method. It works because the MapActivity inherits the dispatchTouch event, not the OnTouchEvent from Activity Class. @Override public boolean dispatchTouchEvent(MotionEvent ev) { int actionType = ev.getAction(); switch (actionType) { case MotionEvent.ACTION_UP: Projection proj =

Google Maps remove marker route context menu

纵然是瞬间 提交于 2019-12-04 04:03:24
I started a new project with the Google Maps template of Android Studio and just added a marker to the map. LatLng location = new LatLng(lat, lng); Marker marker = mMap.addMarker(new MarkerOptions() .position(location) .icon(BitmapDescriptorFactory.fromResource(R.drawable.marker))); When I click the Marker there comes a little menu with a Google Maps icon on the bottom right corner: How can I get rid of this thing? I couldn't find anything I even don't know how to call it but I really need to get rid of it. You need to call setMapToolbarEnabled method of UiSettings Like this: @Override public

Get height of a building from a maps API

让人想犯罪 __ 提交于 2019-12-04 03:54:31
It's any public maps API (google, microsoft, openstreet...) that returns the height of the roof for certain points? Imagine: you request some address and the API returns the coordinates, some information and the height of the building, if available. OpenStreetMap has a height tag and various other building related tags like building:levels from which you could estimate the height. However note that currently most buildings lack those tags as they aren't widely in use so far. Still you could give it a try and request all buildings around a specific point or area using Overpass API / overpass

how to highlight a chosen line on a leaflet map?

牧云@^-^@ 提交于 2019-12-04 03:41:21
问题 I want to draw a map with few routes drawn on it. I want to have a dropbox with numbers 1,..,n when an item in the dropbox is chosen, the corresponding route is highlighted on the map. I have started using "leaflet". how do I highlight a line? I have used "weight" but it's more a border to a line. I would like to see the line is getting bolder. here is my code: document.onload = loadMap(); function loadMap() { var map = L.map('map').setView([37.8, -96], 4); L.tileLayer('https://api.tiles

Using std::unique_ptr inside a map as a key

旧街凉风 提交于 2019-12-04 03:31:56
问题 I am using Visual Studio 2012. I have a map that looks like this: std::map<std::string,std::map<std::unique_ptr<sf::Sound>,std::unique_ptr<sf::SoundBuffer>>> listSoundContainer; I'm trying to insert data like this: std::unique_ptr<sf::SoundBuffer> soundBuffer(new sf::SoundBuffer()); if (soundBuffer->loadFromFile("assets/sound/" + _fileName) != false) { std::unique_ptr<sf::Sound> sound(new sf::Sound(*soundBuffer)); typedef std::map<std::unique_ptr<sf::Sound>, std::unique_ptr<sf::SoundBuffer>>

How to expand the shared location URL from Google Maps?

空扰寡人 提交于 2019-12-04 03:31:21
问题 I am trying to get the location from google map shared location link so I am using Google Shorten URL API to expand the URL but when I shared URL from Google Map application from the android device it gives me https://maps.app.goo.gl/eEhh3 this kind of URL. It does not give me actual expanded URL to provide Location information. how to expand this: https://maps.app.goo.gl/eEhh3 In this link: https://www.google.com/maps/place/Siddique+Trade+Center/@31.5313297,74.3504459,17z/data=!3m1!4b1!4m5

Android Polyline - Adding point by point

会有一股神秘感。 提交于 2019-12-04 03:28:47
I'm currently having a map, and each 10 meters I use LocationListener to refresh my location and get the new Latitude and Longitude. Now I wish that the route the user is taking will be displayed with a red line. So everytime the OnLocationChange() from LocationListener class is called, I want to update the map with a line between the last location and the new location. So far I've added the following: private void initializeDraw() { lineOptions = new PolylineOptions().width(5).color(Color.RED); lineRoute = workoutMap.addPolyline(lineOptions); } during the OnLocationChanged I call this: