Getting Total Miles In Each State Passed - google-maps-api-3

I would like to know if it is possible to get the total miles traveled (via road/interstate) in each state instead of the total miles only.
For example: From Chicago, IL to Atlanta, GA the total miles traveled in each state would be:
IL=16 miles
IN=284 miles
KY=137 miles
TN=152 miles
GA=128 miles
From what I understand this is not possible in google maps api but I wanted to see if it is possible using anything else, Bing, YAhoo, Mapquest ???
Thanks for any help...

You might be able to use the MapQuest Directions Service to come up with very basic/general distances for each state, but I'm not sure if the distances will be exact enough to fit your needs. Basically, the directions service returns driving directions in terms of "maneuvers" and you can make a request to the directions service that tells it to include crossing state boundaries in the maneuvers it returns. You may be able to parse the data that is returned to calculate the route distances between the "crossing into (state name)" maneuvers, but again, it might not be exact enough.
It might be worth a look. I've never done this before, but it's my first thought. The MapQuest Developer Network has forums, so it might be worth it to post the question there, too.

You can keep track of miles driven in each state (Example: Travel from home in New Mexico to (any city)Texas. These programs will do this for you, Trulos.com, IFTA Plus, truckingoffice.com, ifta-calculator.com Some are free others usually give a 30 day free trial. I use programs like this when I'm filing mileage/fuel reports for commercial drivers. These drivers always have to report how many miles they travel in "each" state. All you have to enter is the location of your starting point and your final destination. The program will then calculate your miles traveled for each state and also will give you the "total" miles traveled.

Related

API - HERE Routing - How to get miles driven per each state?

For any given route e.g. Brooklyn, NY to Seattle, WA, I need to calculate amount of miles we drove via each state.
I have tested multiple routing APIs and non of them return anything I could use in calculation. (I testes MapQuest, google and TomTom)
I spoke to HERE.com sales rep and he told me HERE-apis return that info but after running test calls it does not look to me that this is the case.
Does anyone know how to format query on HERE-api to get info I am looking for or any other way?
HERE Routing API does not support a feature to calculate to calculate the sum of amount miles grouping by State level. But probably you can do post process for the calculation the sum of amount miles based on road network in State level.

Plot movement over time in (preferably) Google Maps

I have a spreadsheet with columns for person, date, event, place name, latitude, and longitude. This is the result of many years of genealogical research that shows the birth, marriage, and death locations for several hundred of my direct ancestors as they migrated across the world and finally converged in South Africa for the last few generations.
I'd very much like to create an animation or video showing their movements over time, preferably with a marker flashing at the location, then fading away, with or without lines linking the markers for the duration of the person's life. At 9 generations ago this would then show 512 births happening at roughly the same time, moving on to them converging into 256 places as couples got married, then between those 256 marriages and the original 512 deaths, the 256 births of people of the next generation would flash on, and so on, finally converging on just my birth. I believe such an animation would be an excellent way to make the vast family tree accessible in a visual way, and other genealogical researchers would probably also enjoy doing this. The ability to automatically zoom in on the bounding box of the locations at any given time would be needed to show movements within a smaller geographic location, but first and foremost I simply want to plot points over time.
Does anyone know of a free or commercial tool that would allow doing this? I have explored this in most genealogical software solutions but they provide very limited tools showing one person or one couple at a time, so I suspect I'm going to have to plug this into a generic 'plot movement over time' tool in a good map service.
I have used GraphXR for plotting family tree members linked to one of their several maps, with the edges being either a birth, marriage or death date. The data is queried from Neo4j which has a seamless interface with GraphXR.
I'm now working on a Neo4j PlugIn for genealogy and collaborating with GraphXR developers to make such visualizations easier for end users.
It's not exactly what you are looking for, but it may be helpful?
http://gfg.md/blogpost/7

Does the HERE Fleet Telematics API give you extra information if you're on premium?

I'm looking to use the lane information from the fleet telematics api to understand what lanes does a specific road have (for example, knowing if a road has a right turn lane). I'm currently querying the LANE_FC tiles for this information. This works, but a lot of the time it seems to return no results for links that do have turning lanes. I noticed that LANE_FC is in "PDE-Premium-Road-Info", so I'm wondering if I need to upgrade to premium to get better lane information.
Thanks!
In general a Freemim plan would have access to all PDE layers. The lane data is usually only available for Major roads like Motorways and also may depend on the region hence if LANE_FC is not returning any data for a tile then most probably there is no data in that tile.

Get nearest intersection using HERE Maps APIs

I want to measure the distance to the next intersection/traffic light based on a gps location(s).
I DON’T have a route (i.e. no destination point) but I can get gps locations every second (while on the move).
Is it possible to get the information using HERE APIs?
I understand that there is no direct way (specific api) to do it, but I would appreciate any idea that will fulfill my needs.
The general idea that I came up with was getting at least 2 gps points to understand the direction, then getting link_id for current location and try to get the next links in same direction/road and find if any of them are intersections...
I didn’t find a way to do it. Any ideas?
There is no direct API for this however there is an idea that you have to crawl along the link into the direction determined like you outlined (or better by sending the last few GPS points to our Route Matcher (aka RME)) until you reach an intersection.
And this can be achieved with a concept of "electronic horizon" in SDK. It takes your current road link and driving direction and then crawls forward over the upcoming links until an intersection comes (or even beyond taking the most probable choice). mobile SDK has this "electronic horizon" feature.
https://developer.here.com/documentation/android-premium/dev_guide/topics/electronic-horizon.html

ASP.net User Location from IP Address

I have seen other discussions raising this topic however I'm far from confident with the results I'm getting. I wonder if someone can add some more insight into this topic.
We want to dynamically load the correct contact details based on the visitor's state in Australia.
We are using IP 2 Location and went out to test the database. I posted on Facebook a request for everyone in New South Wales to click a link on my post, I stored the result. I understand this is based on trust but the results are fairly unconvincing!
RESULTS: http://www.digeratisolutions.com.au/resultsdata.txt
Has anybody got a solution that is bankable? Or should I not automate something like this? Seems useless if this case doesn't work.
I have also tried Google's location API and it thought I was in another state.
This isn't reliable. To the best of my knowledge, the only way to get geographic location from an IP is to look up the DNS or whois records and see what geographic location they give, if any. But there's no assurance that that's the actual geographical location of a given user. For a home user it's going to show the location of the ISP, not the user. For example I just tried that site you linked to and it said I was in Ann Arbor, Michigan, US, which is close but I am really in Monroe, Michigan, 40 miles away. For someone at a business location, it's a location entered by the business, which is often their headquarters or a network center, not necessarily the work location of the individual person. That can result in wildly inaccurate locations.
If you're talking contractual issues, I don't think a "maybe probably this is what state they're in" will work. It occurs to me that even if you had a method that was 100% accurate, it could at best tell you where the user is at that moment, which is not necessarily where they live or where their business is. What if someone lives near a state boundary, and he connects to your web site while eating lunch at a wifi hot spot across the state line?
I think you'd be better off to just ask the user to tell you where they live or where their office is located. You can save their answer in your own database. Last I checked Australia only had six states -- maybe you also need to allow the territories, whatever -- so it shouldn't be tough for someone to select the right one from a list. That doesn't seem like a hard question.

Resources